/* ============================================
   CHAKRAON ENERGY — Clean Rebuild
   Palette: Teal (#0891b2) → Green (#16a34a)
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --teal: #0891b2;
    --teal-deep: #0e7490;
    --green: #16a34a;
    --green-deep: #15803d;

    --bg: #050a12;
    --bg-alt: #0a1020;
    --surface: #111a2e;
    --surface-hover: #162035;
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(8,145,178,0.2);

    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --white: #ffffff;

    --gradient: linear-gradient(135deg, var(--teal), var(--green));
    --glow: 0 0 60px rgba(8,145,178,0.12);
    --glow-strong: 0 0 80px rgba(8,145,178,0.2);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: color 0.25s; }
ul { list-style: none; }
strong { color: var(--white); font-weight: 600; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem; font-family: inherit;
    cursor: pointer; transition: all 0.25s; border: none;
}
.btn-primary {
    background: var(--gradient); color: var(--white);
    box-shadow: 0 4px 24px rgba(8,145,178,0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(8,145,178,0.4);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: all 0.35s ease; background: transparent;
}
.navbar.scrolled {
    background: rgba(5,10,18,0.88);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo-img { height: 58px; width: auto; transition: height 0.3s; border-radius: 8px; }
.navbar.scrolled .nav-logo-img { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: var(--gradient) !important;
    padding: 10px 24px !important; border-radius: 8px;
    color: var(--white) !important; font-weight: 600 !important;
}

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 1px; }

/* ── HERO ── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding: 140px 0 100px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.5;
}
.hero-orb-1 { width: 700px; height: 700px; top: -250px; right: -200px; background: rgba(8,145,178,0.08); }
.hero-orb-2 { width: 500px; height: 500px; bottom: -150px; left: -100px; background: rgba(22,163,74,0.06); }
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(8,145,178,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,145,178,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

.hero-container {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative; z-index: 1;
}
.hero-content { max-width: 880px; }
.hero-tagline {
    display: inline-block;
    padding: 8px 22px; border-radius: 999px;
    background: rgba(8,145,178,0.10);
    border: 1px solid var(--border-accent);
    color: var(--teal);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    margin-bottom: 28px;
}
.hero-title { font-size: 4.2rem; font-weight: 800; margin-bottom: 28px; }
.hero-line { display: block; }
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-muted); line-height: 1.75;
    margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { font-size: 0.7rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; }
.hero-scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom, var(--teal), transparent); animation: scrollPulse 2.5s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ── SECTIONS ── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
    display: inline-block; padding: 6px 18px; border-radius: 6px;
    background: rgba(8,145,178,0.08); border: 1px solid var(--border-accent);
    color: var(--teal); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}
.section-header h2 { font-size: 2.8rem; font-weight: 800; }
.section-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 20px auto 0; line-height: 1.7; }

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 { font-size: 2.4rem; margin-bottom: 24px; text-align: left; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

.about-visual { display: flex; flex-direction: column; gap: 16px; }
.about-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px 24px;
    display: flex; align-items: flex-start; gap: 20px;
    transition: all 0.3s ease;
}
.about-card:hover { border-color: var(--border-accent); transform: translateX(4px); }
.about-card-featured {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(8,145,178,0.06), rgba(22,163,74,0.03));
    box-shadow: var(--glow);
}
.about-card-icon { width: 48px; height: 48px; flex-shrink: 0; }
.about-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.about-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ── HOW IT WORKS — STEPS ── */
.steps-grid {
    display: flex; align-items: center; justify-content: center; gap: 0;
}
.step-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 44px 32px; text-align: center;
    flex: 1; max-width: 320px; transition: all 0.35s ease;
}
.step-card:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: var(--glow); }
.step-card-featured {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(8,145,178,0.06), rgba(22,163,74,0.03));
    box-shadow: var(--glow); transform: scale(1.04);
}
.step-card-featured:hover { transform: scale(1.04) translateY(-6px); }
.step-number {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700;
    color: var(--text-dim); margin-bottom: 20px; letter-spacing: 1px;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* Icon wrapper with glow */
.step-icon-wrap {
    position: relative; width: 88px; height: 88px;
    margin: 0 auto 24px;
}
.step-icon-ring {
    width: 88px; height: 88px; border-radius: 50%;
    border: 1.5px solid rgba(8,145,178,0.2);
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,145,178,0.03);
    position: relative; z-index: 1;
    transition: all 0.4s ease;
}
.step-icon-ring svg { width: 44px; height: 44px; color: var(--teal); }
.step-icon-ring-featured {
    border-color: rgba(8,145,178,0.35);
    background: rgba(8,145,178,0.06);
}
.step-card:hover .step-icon-ring {
    border-color: var(--teal);
    transform: scale(1.08);
}
.step-card:last-child .step-icon-ring svg { color: var(--green); }
.step-card:last-child .step-icon-ring { border-color: rgba(22,163,74,0.2); background: rgba(22,163,74,0.03); }
.step-card:last-child:hover .step-icon-ring { border-color: var(--green); }

/* Pulsing glow behind icon */
.step-icon-glow {
    position: absolute; inset: -12px; border-radius: 50%;
    z-index: 0; opacity: 0;
    animation: iconPulse 3s ease-in-out infinite;
}
.step-glow-teal { background: radial-gradient(circle, rgba(8,145,178,0.2), transparent 70%); }
.step-glow-grad { background: radial-gradient(circle, rgba(8,145,178,0.25), rgba(22,163,74,0.1), transparent 70%); }
.step-glow-green { background: radial-gradient(circle, rgba(22,163,74,0.2), transparent 70%); }
@keyframes iconPulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}
.step-card:nth-child(1) .step-icon-glow { animation-delay: 0s; }
.step-card:nth-child(3) .step-icon-glow { animation-delay: 1s; }
.step-card:nth-child(5) .step-icon-glow { animation-delay: 2s; }

/* Solar ray animation */
@keyframes rayPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.ray { animation: rayPulse 2.5s ease-in-out infinite; }
.ray-1 { animation-delay: 0s; }
.ray-2 { animation-delay: 0.3s; }
.ray-3 { animation-delay: 0.6s; }
.ray-4 { animation-delay: 0.9s; }
.ray-5 { animation-delay: 0.15s; }
.ray-6 { animation-delay: 0.45s; }
.ray-7 { animation-delay: 0.75s; }
.ray-8 { animation-delay: 1.05s; }

/* Battery fill pulse */
@keyframes battFill {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.25; }
}
.batt-fill { animation: battFill 3s ease-in-out infinite; }

/* Grid center pulse */
@keyframes gridPulse {
    0%, 100% { opacity: 0.3; r: 2; }
    50% { opacity: 0.8; r: 4; }
}
.grid-pulse { animation: gridPulse 2s ease-in-out infinite; }

/* ── Connector between cards ── */
.step-connector {
    width: 60px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.step-connector-track {
    width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(8,145,178,0.15), rgba(22,163,74,0.15));
    border-radius: 1px; position: relative; overflow: hidden;
}
@keyframes connectorFlow {
    0% { left: -16px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% + 16px); opacity: 0; }
}
.step-connector-particle {
    position: absolute; top: -4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 14px rgba(8,145,178,0.7), 0 0 28px rgba(8,145,178,0.3);
    animation: connectorFlow 2.5s ease-in-out infinite;
}
.step-connector-particle-green {
    background: var(--green);
    box-shadow: 0 0 14px rgba(22,163,74,0.7), 0 0 28px rgba(22,163,74,0.3);
    animation-delay: 1.2s;
}

/* ── WHY NOW / CATALYSTS ── */
.catalysts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalyst-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 40px 32px; transition: all 0.35s ease;
}
.catalyst-card:hover { border-color: var(--border-accent); transform: translateY(-5px); box-shadow: var(--glow); }
.catalyst-icon-wrap { width: 48px; height: 48px; margin-bottom: 20px; color: var(--teal); }
.catalyst-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.catalyst-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 40px 32px; text-align: center; transition: all 0.35s ease;
}
.team-card:hover { border-color: var(--border-accent); transform: translateY(-5px); }

.team-photo {
    width: 100px; height: 100px; border-radius: 50%;
    margin: 0 auto 20px; overflow: hidden; position: relative;
    border: 2px solid var(--border-accent);
}
.team-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-photo-fallback {
    display: none; width: 100%; height: 100%;
    background: var(--gradient);
    align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.4rem; color: var(--white);
}

.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-role { display: block; color: var(--teal); font-weight: 600; font-size: 0.82rem; margin-bottom: 16px; }
.team-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── CTA / CONTACT ── */
.section-cta {
    background: var(--bg-alt); padding: 120px 0;
    border-top: 1px solid var(--border);
}
.cta-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.cta-text h2 { font-size: 2.4rem; margin-bottom: 20px; line-height: 1.2; }
.cta-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.7; }

.cta-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.cta-info-item { display: flex; align-items: flex-start; gap: 16px; }
.cta-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--teal); margin-top: 4px; }
.cta-info-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.cta-info-item a, .cta-info-item span { display: block; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.cta-info-item a:hover { color: var(--teal); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 48px 0 32px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 56px; width: auto; border-radius: 8px; }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; }

.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--teal); }

.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-bottom p { text-align: center; font-size: 0.78rem; color: var(--text-dim); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.2rem; }
    .section-header h2 { font-size: 2.2rem; }
    .steps-grid { flex-wrap: wrap; gap: 16px; }
    .step-connector { display: none; }
    .step-card { max-width: none; }
    .step-card-featured { transform: none; }
    .step-card-featured:hover { transform: translateY(-6px); }
    .steps-grid { flex-wrap: wrap; gap: 16px; }
    .step-connector { display: none; }
    .step-card { max-width: none; }
    .step-card-featured { transform: none; }
    .step-card-featured:hover { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,10,18,0.97); backdrop-filter: blur(24px);
        flex-direction: column; padding: 20px; gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 14px 16px; width: 100%; text-align: center; border-radius: 8px; }
    .nav-links a:hover { background: var(--surface); }
    .mobile-toggle { display: flex; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 110px 0 70px; }
    .hero-title { font-size: 2.6rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .section { padding: 80px 0; }
    .section-header h2 { font-size: 1.8rem; }

    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-text h2 { font-size: 1.8rem; }

    .catalysts-grid, .team-grid { grid-template-columns: 1fr; }

    .cta-layout { grid-template-columns: 1fr; gap: 48px; }
    .cta-text h2 { font-size: 1.8rem; }

    .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
    .footer-brand { flex-direction: column; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
}
