/* ===============================
   Phoenext - Theme
   =============================== */

:root {
    /* Colors */
    --color-bg: #022923;                 /* deep emerald / teal */
    --color-bg-deep: #011816;
    --color-surface: #10121A;
    --color-surface-soft: #161927;
    --color-primary: #00C58A;            /* emerald accent */
    --color-secondary: #F6C453;          /* gold accent */
    --color-text-main: #F5F7FF;
    --color-text-muted: #9FA3BF;
    --color-border-subtle: rgba(255, 255, 255, 0.06);

    /* Wordmark colors (logo text) */
    --logo-phoe: #F5F2E9;               /* warm cream */
    --logo-next: #F6C453;               /* gold */

    /* Shadows & Radii */
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;

    /* Layout */
    --max-width: 1120px;
    --nav-height: 70px;

    /* Fonts */
    --font-heading: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global Reset & Base */

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

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

/* Full-page emerald background with vignette */

body {
    min-height: 100vh;
    position: relative;
    color: var(--color-text-main);
    background: radial-gradient(circle at top, #063830 0%, #022923 40%, #011816 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    mix-blend-mode: multiply;
    z-index: -1;
}

/* Layout Helpers */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    padding: 80px 16px;
}

.section--tight {
    padding: 56px 16px;
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Alternating section “banners” */

.section--alt {
    background:
            radial-gradient(circle at top right, rgba(0, 197, 138, 0.22), transparent 55%),
            radial-gradient(circle at bottom left, rgba(246, 196, 83, 0.12), transparent 60%);
}

.section--striped {
    background:
            linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(4, 27, 24, 0.85) 40%, rgba(0,0,0,0.6) 100%);
}

/* Typography */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.9rem, 2.4vw, 2.2rem);
}

/* Styled section titles */
.section-title {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.section-heading {
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
    margin-bottom: 6px;
}

.section-heading-sub {
    font-size: 0.98rem;
    color: var(--color-text-muted);
    max-width: 640px;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 12px;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ====================
   NAVBAR & WORDMARK
   ==================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(18px);
    background: linear-gradient(
            to bottom,
            rgba(1, 18, 17, 0.96),
            rgba(1, 18, 17, 0.8),
            transparent
    );
    border-bottom: 1px solid var(--color-border-subtle);
}

.nav__inner {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Text-only logo as wordmark */

.logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-wordmark__main {
    text-transform: lowercase;
}

.logo-wordmark__phoe {
    color: var(--logo-phoe);
}

.logo-wordmark__next {
    color: var(--logo-next);
}

.logo-wordmark__tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Nav links (section titles) */

.nav__links {
    display: flex;
    gap: 18px;
    font-size: 0.88rem;
}

.nav__link {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.18s ease-out;
}

.nav__link:hover {
    color: var(--color-text-main);
}

.nav__link:hover::after {
    width: 100%;
}

/* Active link (optional) */
.nav__link--active {
    color: var(--color-text-main);
}
.nav__link--active::after {
    width: 100%;
}

/* ====================
   HERO
   ==================== */

.hero {
    position: relative;
    padding-top: 32px;
    padding-bottom: 80px;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 32px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 197, 138, 0.08);
    color: var(--color-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero__eyebrow i {
    font-size: 1.1rem;
}

.hero__subtitle {
    font-size: 1rem;
    max-width: 520px;
}

.hero__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__tagline {
    margin-top: 16px;
    font-size: 0.88rem;
}

/* Typing cursor line under hero text */

.hero__typing {
    margin-top: 18px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    padding-right: 4px;
    border-right: 2px solid var(--color-secondary);
    animation: blink-caret 0.75s step-end infinite;
}

/* Hero visual card */

.hero-visual {
    position: relative;
    min-height: 260px;
}

.hero-visual__card {
    position: relative;
    background: radial-gradient(circle at top, #1E2233, #11131E 56%, #05060A 100%);
    border-radius: 24px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    isolation: isolate;
}

.hero-visual__card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
            radial-gradient(circle at 10% 0%, rgba(0, 197, 138, 0.23), transparent 55%),
            radial-gradient(circle at 100% 20%, rgba(246, 196, 83, 0.18), transparent 60%);
    opacity: 0.95;
    z-index: -1;
}

.hero-visual__label {
    font-size: 0.78rem;
    color: rgba(245, 247, 255, 0.8);
    margin-bottom: 10px;
}

.hero-visual__pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-visual__pill {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    background: rgba(5, 6, 10, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-visual__pill i {
    font-size: 1.05rem;
}

.hero-visual__phoenix {
    margin-top: 22px;
    min-height: 120px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background:
            radial-gradient(circle at top, rgba(0, 197, 138, 0.18), transparent 65%),
            radial-gradient(circle at bottom, rgba(246, 196, 83, 0.18), transparent 65%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual__phoenix-text {
    font-size: 0.9rem;
    text-align: center;
    color: rgba(245, 247, 255, 0.9);
}

/* Buttons */

.btn {
    border-radius: var(--radius-pill);
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), #01AC79);
    color: #020305;
    box-shadow: 0 10px 28px rgba(0, 197, 138, 0.28);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 197, 138, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border-subtle);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Cards */

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card--soft {
    background: var(--color-surface-soft);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 197, 138, 0.3);
}

.card__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.card__meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

/* Icon circle (bigger icons now) */

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at bottom, rgba(0, 197, 138, 0.25), transparent 65%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.icon-circle i {
    font-size: 1.45rem;
}

/* Stats */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.stat {
    background: radial-gradient(circle at top, rgba(0, 197, 138, 0.22), transparent 60%);
    background-color: #080910;
    border-radius: var(--radius-md);
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

/* stat icon */
.stat__icon {
    margin-bottom: 6px;
    color: rgba(245,247,255,0.9);
}

.stat__icon i {
    font-size: 1.4rem;
}

.stat__value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Stats hover animation */

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 197, 138, 0.35);
    border-color: rgba(246, 196, 83, 0.7);
}

/* Process - flow style */

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
    position: relative;
}

/* flowchart-like background line */
@media (min-width: 900px) {
    .process-flow::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 36px;
        height: 1px;
        border-top: 1px dashed rgba(246, 196, 83, 0.4);
        z-index: 0;
        pointer-events: none;
    }
}

.process-step {
    position: relative;
    border-radius: var(--radius-md);
    padding: 16px 16px 14px;
    border: 1px solid var(--color-border-subtle);
    background: #0B0D14;
    font-size: 0.9rem;
    z-index: 1;
}

.process-step__icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.16), transparent 60%);
    border: 1px solid rgba(246,196,83,0.6);
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.process-step__icon i {
    font-size: 1.2rem;
}

.process-step__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.process-step__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

.process-step__desc {
    font-size: 0.86rem;
}

/* About layout */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 28px;
    align-items: center;
    margin-top: 24px;
}

.about-visual {
    position: relative;
}

.about-visual__img {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow-soft);
    display: block;
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 32px 16px 40px;
    margin-top: 40px;
    background: radial-gradient(circle at top, #11131D 0%, #05060A 60%);
    font-size: 0.85rem;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.8fr);
    gap: 20px;
}

.footer__brand {
    color: var(--color-text-muted);
}

.footer__brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.footer__links-title,
.footer__contact-title {
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.footer__link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link-list li {
    margin: 4px 0;
}

.footer__link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.84rem;
}

.footer__link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer__bottom {
    margin-top: 18px;
    color: var(--color-text-muted);
}

/* Animations */

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50%      { border-color: var(--color-secondary); }
}

/* Utilities */

.text-center { text-align: center; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

.grid {
    display: grid;
    gap: 20px;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =====================
   RESPONSIVE
   ===================== */

/* Tablet-ish */
@media (max-width: 900px) {
    .nav__links {
        gap: 10px;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .section {
        padding: 64px 16px;
    }

    .hero__inner {
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        height: auto;
    }

    .nav__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav__links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .section {
        padding: 56px 14px;
    }

    .hero {
        padding-top: 24px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__actions {
        gap: 10px;
    }

    .hero-visual {
        order: -1; /* show visual above text on mobile if you want, remove if not desired */
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .process-flow::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small / narrow phones */
@media (max-width: 480px) {
    .nav__inner {
        align-items: flex-start;
    }

    .logo-wordmark {
        font-size: 1.4rem;
    }

    .logo-wordmark__tag {
        font-size: 0.6rem;
        letter-spacing: 0.14em;
    }

    .nav__links {
        font-size: 0.75rem;
    }

    .hero__typing {
        font-size: 0.83rem;
        max-width: 100%;
    }

    .icon-circle {
        width: 46px;
        height: 46px;
    }

    .icon-circle i {
        font-size: 1.25rem;
    }

    .stats-grid {
        gap: 14px;
    }

    .section-heading-sub {
        font-size: 0.9rem;
    }
}
