/* ========================================================
   ForOptimize — Paper Anti-Gravity Editorial Dark Theme
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ======== Custom Properties ======== */
:root {
    /* Dark surfaces — ultra-deep carbon */
    --bg-dark: #0C1117;
    --bg-dark-alt: #111820;
    --bg-dark-lighter: #172029;

    /* Paper cards — dark slate, stacked layers get darker */
    --paper: #1A2332;
    --paper-warm: #152030;
    --paper-fold: #101A28;
    --paper-shadow: rgba(0, 0, 0, 0.4);

    /* Accent — emerald green */
    --amber: #34D399;
    --amber-light: #6EE7B7;
    --amber-dark: #10B981;
    --amber-glow: rgba(52, 211, 153, 0.14);

    /* Text */
    --text-light: #E8F0ED;
    --text-light-dim: #8FA8A0;
    --text-light-muted: #5E7A70;
    --text-dark: #E8F0ED;
    --text-dark-muted: #8FA8A0;

    /* Borders */
    --border-dark: rgba(255, 255, 255, 0.06);
    --border-paper: rgba(255, 255, 255, 0.06);

    /* Shadows */
    --shadow-paper:
        0 1px 1px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 12px 36px rgba(0, 0, 0, 0.18);
    --shadow-paper-hover:
        0 2px 4px rgba(0, 0, 0, 0.10),
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 24px 60px rgba(0, 0, 0, 0.22);
    --shadow-paper-lifted:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 32px 80px rgba(0, 0, 0, 0.18);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s var(--ease-out);
    --t-normal: 0.4s var(--ease-out);
    --t-slow: 0.6s var(--ease-out);

    /* Animation timing */
    --float-speed-1: 5s;
    --float-speed-2: 4.5s;
    --float-speed-3: 5.5s;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(52, 211, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
        var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ======== Grain Texture Overlay ======== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ======== Scroll Progress Bar ======== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber), var(--amber-light));
    z-index: 10000;
    transition: width 0.06s linear;
    box-shadow: 0 0 16px var(--amber-glow), 0 0 4px var(--amber);
}

/* ======== Cursor Blob ======== */
.cursor-blob {
    position: fixed;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(52, 211, 153, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: transform 0.08s linear;
    mix-blend-mode: screen;
}

/* ======== Typography ======== */
h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h3,
h4,
h5 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======== Header ======== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 900;
    padding: 20px 0;
    transition: var(--t-normal);
    background: transparent;
}

.header.scrolled {
    padding: 14px 0;
    background: rgba(12, 17, 23, 0.88);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(52, 211, 153, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======== Logo ======== */
.logo {
    font-size: 1.6rem;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-banner {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 170px !important;
    width: auto !important;
    object-fit: contain;
    transition: var(--t-fast);
    filter: drop-shadow(0 0 6px var(--amber-glow));
}

.logo:hover .logo-banner {
    filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.3));
}

.logo-for {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.5rem;
}

.logo-optimize {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--amber);
    font-size: 1.6rem;
}

/* ======== Navigation ======== */
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a:not(.btn-nav) {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-light-dim);
    transition: var(--t-fast);
    position: relative;
}

.nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber);
    transition: width 0.3s var(--ease-out);
}

.nav a:not(.btn-nav):hover {
    color: var(--text-light);
}

.nav a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: linear-gradient(135deg, var(--amber-dark), var(--amber));
    color: #0C1117;
    padding: 9px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--t-fast);
    border: none;
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--amber-glow), 0 0 0 1px rgba(52, 211, 153, 0.2);
}

/* ======== Language Switch ======== */
.lang-switch {
    display: flex;
    align-items: center;
    background: var(--bg-dark-lighter);
    border: 1px solid var(--border-dark);
    border-radius: 100px;
    padding: 3px;
    margin-left: 6px;
}

.lang-btn {
    padding: 5px 13px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light-muted);
    cursor: pointer;
    border-radius: 100px;
    transition: var(--t-fast);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--amber-dark), var(--amber));
    color: #0C1117;
    box-shadow: 0 1px 8px var(--amber-glow);
}

.lang-btn:hover:not(.active) {
    color: var(--text-light-dim);
}

/* ======== Buttons ======== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--amber-dark), var(--amber));
    color: #0C1117;
    padding: 15px 34px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--t-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 36px var(--amber-glow), 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-light-dim);
    padding: 15px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--t-fast);
    border: 1px solid var(--border-dark);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--text-light);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.1);
}

/* ======== Paper Card System ======== */
.paper-card {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E") repeat,
        var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-paper);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    color: var(--text-dark);
}

.paper-card:hover {
    box-shadow: var(--shadow-paper-hover), 0 0 40px rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.12);
}

/* Dog-ear fold corner */
.dog-ear {
    overflow: hidden;
}

.dog-ear::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 26px 26px;
    border-color: transparent transparent var(--bg-dark) transparent;
    opacity: 0.4;
    z-index: 5;
    transition: border-width 0.3s var(--ease-out);
}

.dog-ear:hover::after {
    border-width: 0 0 32px 32px;
}

/* Paper stack behind cards */
.paper-stack {
    position: relative;
}

.paper-stack::before {
    content: '';
    position: absolute;
    inset: 5px -4px -5px 4px;
    background: var(--paper-warm);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transform: rotate(-1.2deg);
    z-index: -1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.paper-stack::after {
    content: '';
    position: absolute;
    inset: 10px 4px -10px -4px;
    background: var(--paper-fold);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transform: rotate(0.8deg);
    z-index: -2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ======== Section Divider ======== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 32px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0.2;
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--amber);
    transform: rotate(45deg);
    margin: 0 18px;
    opacity: 0.5;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--amber-glow);
}

/* ======== Section Commons ======== */
section {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--amber);
    margin-bottom: 16px;
    text-shadow: 0 0 20px var(--amber-glow);
}

.h2-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-light-dim);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ======== HERO ======== */
.hero {
    padding: 200px 0 100px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Stamp badge */
.stamp-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1.5px solid var(--amber);
    border-radius: 3px;
    transform: rotate(-2deg);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--amber);
    margin-bottom: 32px;
    opacity: 0.9;
    box-shadow: 0 0 16px var(--amber-glow);
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 28px;
    color: var(--text-light);
}

/* Typewriter headline */
.typewriter-wrap {
    display: block;
    min-height: 2.4em;
}

.typewriter-cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--amber-light);
    margin-left: 2px;
    animation: cursorBlink 0.7s steps(2) infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ======== MISSION SECTION ======== */
.mission-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.mission-inner {
    text-align: center;
}

.mission-quote {
    margin: 32px auto 56px;
    max-width: 780px;
}

.mission-quote p {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.mission-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.mission-col h3 {
    font-size: 1.1rem;
    color: var(--amber);
    margin-bottom: 14px;
    font-weight: 700;
}

.mission-col p {
    font-size: 0.98rem;
    color: var(--text-light-dim);
    line-height: 1.85;
}

/* ======== SUBPAGE HERO ======== */
.page-hero {
    padding: 180px 0 60px;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--text-light);
}

.page-hero-desc {
    font-size: 1.1rem;
    color: var(--text-light-dim);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ======== SUBPAGE COMMONS ======== */
.subpage-section {
    padding: 60px 0;
}

.subpage-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.subpage-card {
    padding: 40px;
    margin-bottom: 28px;
    transition: none !important;
    transform: none !important;
}

.subpage-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-paper) !important;
}

.subpage-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.subpage-card p {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}

.subpage-card p:last-of-type {
    margin-bottom: 0;
}

/* ======== PRODUCT DETAIL CARDS ======== */
.product-detail {
    padding: 36px;
    margin-bottom: 22px;
}

.product-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.product-detail-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.product-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--amber-light);
    transition: var(--t-fast);
}

.product-link:hover {
    color: var(--amber);
}

.product-detail p {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}

.product-detail p:last-of-type {
    margin-bottom: 0;
}

/* ======== VALUES GRID ======== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px 28px;
    text-align: center;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-dark-muted);
    line-height: 1.8;
}

/* ======== PRIVACY CARD ======== */
.privacy-card {
    padding: 36px 40px;
    margin-bottom: 20px;
}

.privacy-card h2 {
    font-size: 1.3rem;
}

/* ======== ECOSYSTEM CTA ======== */
.ecosystem-cta {
    text-align: center;
    margin-top: 48px;
}

/* ======== Context Engine Tagline ======== */
.context-engine-tagline {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-light-dim);
    margin: 32px auto 48px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.context-engine-tagline .tagline-for {
    font-weight: 700;
    color: var(--text-light);
}

.context-engine-tagline em {
    color: var(--amber);
    font-style: italic;
}

/* ======== Responsive additions ======== */
@media (max-width: 768px) {
    .mission-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mission-quote p {
        font-size: 1.4rem;
    }

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

    .page-hero-title {
        font-size: 2.4rem;
    }

    .page-hero {
        padding: 140px 0 40px;
    }
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-light-dim);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.85;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero Paper Stack Visual — overflows right */
.hero-visual {
    position: relative;
    margin-right: -120px;
    display: flex;
    justify-content: center;
}

.hero-paper-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 440px;
}

.hero-sheet {
    position: absolute;
    inset: 0;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-paper);
    box-shadow: var(--shadow-paper);
}

.hero-sheet-1 {
    background: var(--paper-fold);
    transform: rotate(4deg);
    z-index: 1;
    animation: paperFloat1 var(--float-speed-1) ease-in-out infinite;
}

.hero-sheet-2 {
    background: var(--paper-warm);
    transform: rotate(-2.5deg) translate(6px, 4px);
    z-index: 2;
    animation: paperFloat2 var(--float-speed-2) ease-in-out 0.3s infinite;
}

.hero-sheet-3 {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E") repeat,
        var(--paper);
    transform: rotate(0.5deg) translate(-2px, -2px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 32px 30px;
    animation: paperFloat3 var(--float-speed-3) ease-in-out 0.6s infinite;
}

@keyframes paperFloat1 {

    0%,
    100% {
        transform: rotate(4deg) translateY(0);
    }

    50% {
        transform: rotate(4deg) translateY(-10px);
    }
}

@keyframes paperFloat2 {

    0%,
    100% {
        transform: rotate(-2.5deg) translate(6px, 4px);
    }

    50% {
        transform: rotate(-2.5deg) translate(6px, -5px);
    }
}

@keyframes paperFloat3 {

    0%,
    100% {
        transform: rotate(0.5deg) translate(-2px, -2px);
    }

    50% {
        transform: rotate(0.5deg) translate(-2px, -12px);
    }
}

/* Sheet content */
.sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-paper);
}

.sheet-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sheet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheet-list li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 5px;
}

.sheet-list li span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sheet-sep {
    width: 100%;
    height: 1px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.sheet-stamp {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dark-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ======== Ecosystem Section ======== */
.ecosystem-section {
    padding: 120px 0 80px;
    background: var(--bg-dark-alt);
    position: relative;
    overflow: hidden;
}

/* Watermark */
.ecosystem-section::after {
    content: 'OPTIMIZE';
    position: absolute;
    font-size: 16vw;
    font-weight: 900;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    z-index: 0;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* DeeDe Group */
.deede-group {
    padding: 36px;
    transform: rotate(-0.4deg);
    grid-row: 1 / 3;
}

.deede-group:hover {
    transform: rotate(0deg) translateY(-6px) !important;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.group-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(244, 161, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.group-logo {
    width: 32px;
    height: auto;
}

.group-title {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.group-desc {
    color: var(--text-dark-muted);
    font-size: 0.88rem;
}

.group-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-product {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--t-fast);
}

.sub-product:hover {
    background: rgba(244, 161, 0, 0.04);
    border-color: rgba(244, 161, 0, 0.15);
    transform: translateX(4px);
}

.sub-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 14px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sub-info h4 {
    font-size: 0.92rem;
    margin-bottom: 1px;
    font-weight: 600;
}

.sub-info p {
    font-size: 0.76rem;
    color: var(--text-dark-muted);
    margin: 0;
}

.arrow-icon {
    margin-left: auto;
    color: var(--text-dark-muted);
    font-size: 1rem;
    transition: var(--t-fast);
    flex-shrink: 0;
    opacity: 0.4;
}

.sub-product:hover .arrow-icon {
    color: var(--amber);
    transform: translateX(4px);
    opacity: 1;
}

/* Standalone Column */
.standalone-col {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.standalone-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.standalone-card:nth-child(1) {
    transform: rotate(0.4deg);
}

.standalone-card:nth-child(2) {
    transform: rotate(-0.3deg);
}

.standalone-card:hover {
    transform: rotate(0deg) translateY(-6px) !important;
}

.card-icon-large {
    width: 50px;
    height: 50px;
    background: rgba(244, 161, 0, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon-large img {
    width: 28px;
    height: auto;
}

.kargonify-icon {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    color: #ea580c;
    font-size: 20px;
    font-weight: 900;
}

.standalone-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.standalone-card p {
    color: var(--text-dark-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.7;
}

.learn-more {
    font-weight: 700;
    color: var(--amber-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    transition: var(--t-fast);
}

.standalone-card:hover .learn-more {
    gap: 10px;
    color: var(--amber);
}

/* ======== About Section ======== */
.about-section {
    padding: 140px 0 80px;
    background: var(--bg-dark);
}

.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light-dim);
    margin-bottom: 18px;
    line-height: 1.85;
}

.features-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 18px;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
    transition: var(--t-fast);
    color: var(--text-light);
}

.feature-item:hover {
    border-color: rgba(244, 161, 0, 0.2);
    transform: translateX(4px);
}

.check-icon {
    width: 26px;
    height: 26px;
    background: rgba(244, 161, 0, 0.1);
    color: var(--amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* About Visual — floating paper layers */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-layers {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    position: relative;
}

.paper-layer {
    position: absolute;
    border-radius: var(--radius-xl);
    background: var(--paper);
    border: 1px solid var(--border-paper);
    box-shadow: var(--shadow-paper);
}

.paper-layer:nth-child(1) {
    inset: 0;
    background: var(--paper-fold);
    animation: layerFloat1 6s ease-in-out infinite;
}

.paper-layer:nth-child(2) {
    inset: 28px;
    background: var(--paper-warm);
    animation: layerFloat2 7s ease-in-out 0.5s infinite;
}

.paper-layer:nth-child(3) {
    inset: 56px;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: layerFloat3 5.5s ease-in-out 1s infinite;
}

@keyframes layerFloat1 {

    0%,
    100% {
        transform: rotate(3.5deg) translateY(0);
    }

    50% {
        transform: rotate(3.5deg) translateY(-7px);
    }
}

@keyframes layerFloat2 {

    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }

    50% {
        transform: rotate(-2deg) translateY(-9px);
    }
}

@keyframes layerFloat3 {

    0%,
    100% {
        transform: rotate(1deg) translateY(0);
    }

    50% {
        transform: rotate(1deg) translateY(-6px);
    }
}

.paper-layer-content {
    text-align: center;
    padding: 20px;
}

.layer-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
    display: block;
}

.paper-layer-content p {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--amber-dark);
    font-size: 1rem;
    font-style: italic;
}

/* ======== Contact Section ======== */
.contact-section {
    padding: 60px 0 120px;
}

.contact-paper {
    padding: 80px 40px;
    text-align: center;
    transform: rotate(-0.3deg);
}

.contact-paper:hover {
    transform: rotate(0deg) translateY(-6px) !important;
}

.contact-paper h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-paper .section-subtitle {
    color: var(--text-dark-muted);
    margin-bottom: 36px;
}

.contact-paper .btn-primary {
    background: var(--text-dark);
    color: var(--paper);
}

.contact-paper .btn-primary:hover {
    background: var(--amber);
    color: var(--text-dark);
}

/* ======== Release / Post Cards ======== */
.releases-section {
    padding: 100px 0;
}

.releases-section .section-header {
    text-align: left;
    margin-bottom: 48px;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.release-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px 24px;
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.release-card:hover {
    box-shadow: var(--shadow-paper-hover), 0 0 40px rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.18);
}

.release-card-body {
    flex: 1;
}

.release-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.release-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.release-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.release-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.release-card-date,
.release-card-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark-muted);
}

.release-card-date strong,
.release-card-category strong {
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.82rem;
}

.release-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0C1117;
    background: linear-gradient(135deg, var(--amber-dark), var(--amber));
    padding: 10px 20px;
    border-radius: 100px;
    transition: var(--t-fast);
    text-align: center;
    justify-content: center;
}

.release-card:hover .release-card-cta {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    box-shadow: 0 4px 16px var(--amber-glow);
}

/* ======== Post Body (individual post) ======== */
.post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light-dim);
}

.post-meta-date {
    font-weight: 600;
}

.post-meta-sep {
    color: var(--amber);
}

.post-meta-category {
    font-weight: 600;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
}

.post-body {
    padding: 48px 44px;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.post-body p {
    font-size: 0.96rem;
    color: var(--text-dark-muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.post-body p:last-of-type {
    margin-bottom: 0;
}

.post-body strong {
    color: var(--text-dark);
    font-weight: 700;
}

.post-body em {
    color: var(--amber);
    font-style: italic;
}

.post-cta-bar {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ======== Footer — torn paper edge ======== */
.footer {
    background: var(--paper);
    position: relative;
    padding: 44px 0 36px;
    margin-top: 30px;
    color: var(--text-dark);
}

.footer::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--paper);
    clip-path: polygon(0% 100%, 1.5% 55%, 3% 80%, 5% 35%, 7% 70%, 9% 45%, 11% 85%,
            13% 30%, 15.5% 65%, 18% 40%, 20% 90%, 22% 50%, 24.5% 75%,
            27% 25%, 29% 60%, 31.5% 45%, 34% 80%, 36% 35%, 38.5% 70%,
            41% 50%, 43% 90%, 45.5% 30%, 48% 65%, 50% 45%, 52.5% 85%,
            55% 35%, 57% 70%, 59.5% 50%, 62% 80%, 64% 25%, 66.5% 60%,
            69% 40%, 71% 75%, 73.5% 55%, 76% 90%, 78% 30%, 80.5% 65%,
            83% 45%, 85% 80%, 87.5% 35%, 90% 70%, 92% 50%, 94.5% 85%,
            97% 40%, 100% 60%, 100% 100%);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo-img {
    height: 20px !important;
    width: 20px !important;
    max-height: 20px !important;
    border-radius: 4px;
}

.footer .logo-for {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
}

.footer .logo-optimize {
    font-size: 1.15rem;
    color: var(--amber-dark);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dark-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--t-fast);
}

.footer-links a:hover {
    color: var(--amber);
}

.copyright {
    color: var(--text-dark-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ======== Animations ======== */
/* Paper-drop reveal (like placing paper on desk) */
.paper-drop {
    opacity: 0;
    transform: translateY(-12px) rotate(0.5deg);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.paper-drop.revealed {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.delay-5 {
    transition-delay: 0.4s;
}

/* Hero drop-in */
.hero-drop {
    opacity: 0;
    transform: translateY(-14px) rotate(0.4deg);
    animation: heroDropIn 0.6s var(--ease-out) forwards;
}

.hero-drop-1 {
    animation-delay: 0.15s;
}

.hero-drop-2 {
    animation-delay: 0.3s;
}

.hero-drop-3 {
    animation-delay: 0.45s;
}

.hero-drop-4 {
    animation-delay: 0.6s;
}

.hero-drop-5 {
    animation-delay: 0.75s;
}

@keyframes heroDropIn {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* ======== Mobile Menu ======== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 950;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--t-fast);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======== Responsive ======== */
@media (max-width: 1024px) {

    .hero-grid,
    .ecosystem-grid,
    .about-flex {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-right: 0;
    }

    .deede-group {
        grid-row: auto;
        transform: rotate(0) !important;
    }

    .standalone-col {
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .standalone-card {
        flex: 1;
        min-width: 260px;
        transform: rotate(0) !important;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-paper-stack {
        max-width: 360px;
        margin: 40px auto 0;
        min-height: 400px;
    }

    .about-flex {
        gap: 50px;
    }

    .releases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav.nav-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 900;
    }

    .nav.nav-open a {
        font-size: 1.2rem;
        color: var(--text-light);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .h2-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .ecosystem-section,
    .about-section {
        padding: 80px 0 60px;
    }

    .standalone-col {
        flex-direction: column;
    }

    .contact-paper {
        padding: 50px 24px;
    }

    .contact-paper h2 {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .hero-paper-stack {
        min-height: 380px;
    }
}

/* ========================================================
   ENHANCED ANIMATIONS & PAPER EFFECTS
   ======================================================== */

/* ======== Gradient Shimmer Text ======== */
.shimmer-text {
    background: linear-gradient(90deg,
            var(--text-light) 0%,
            var(--amber-light) 25%,
            var(--amber) 50%,
            var(--amber-light) 75%,
            var(--text-light) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerSlide 6s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* ======== Glowing Section Labels ======== */
.section-label {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 20px var(--amber-glow);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 40px rgba(52, 211, 153, 0.35), 0 0 80px rgba(52, 211, 153, 0.15);
        opacity: 0.92;
    }
}

/* ======== Stamp Badge Breathe ======== */
.stamp-badge {
    animation: stampBreathe 4s ease-in-out infinite, heroDropIn 0.6s var(--ease-out) forwards;
    animation-delay: 0s, 0.15s;
}

@keyframes stampBreathe {

    0%,
    100% {
        box-shadow: 0 0 16px var(--amber-glow);
        border-color: var(--amber);
    }

    50% {
        box-shadow: 0 0 30px rgba(52, 211, 153, 0.3), 0 0 60px rgba(52, 211, 153, 0.1);
        border-color: var(--amber-light);
    }
}

/* ======== Floating Tagline ======== */
.context-engine-tagline {
    animation: floatTagline 4s ease-in-out infinite;
}

@keyframes floatTagline {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ======== Split Text Reveal (JS adds .char spans) ======== */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(4deg);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-spring);
}

.split-text.revealed .char {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* ======== Paper Texture Enhancement ======== */
.paper-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") repeat;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* ======== Paper Crease / Fold Lines ======== */
.paper-crease::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 20%,
            rgba(255, 255, 255, 0.07) 50%,
            rgba(255, 255, 255, 0.04) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ======== Ink Bleed Border Glow ======== */
.ink-bleed {
    position: relative;
}

.ink-bleed::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(52, 211, 153, 0.15) 0%,
            transparent 30%,
            transparent 70%,
            rgba(52, 211, 153, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    filter: blur(8px);
}

.ink-bleed:hover::before {
    opacity: 1;
}

/* ======== Paper Peel Hover Effect ======== */
.paper-peel {
    position: relative;
    overflow: hidden;
}

.paper-peel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,
            var(--bg-dark) 0%,
            var(--bg-dark) 45%,
            rgba(52, 211, 153, 0.06) 45%,
            var(--paper-warm) 100%);
    border-bottom-right-radius: 12px;
    transform: translate(-100%, -100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 10;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.paper-peel:hover::after {
    transform: translate(0, 0);
}

/* ======== Floating Particles (CSS-only) ======== */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--amber);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 35%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 50%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 65%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    left: 75%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    left: 92%;
    animation-duration: 17s;
    animation-delay: 0.5s;
}

.particle:nth-child(odd) {
    width: 2px;
    height: 2px;
}

.particle:nth-child(3n) {
    background: var(--amber-light);
    width: 4px;
    height: 4px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ======== Button Ripple Effect ======== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ======== Staggered Card Cascade ======== */
.cascade-item {
    opacity: 0;
    transform: translateY(30px) rotate(0.5deg);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.cascade-item.revealed {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.cascade-item:nth-child(1) {
    transition-delay: 0.05s;
}

.cascade-item:nth-child(2) {
    transition-delay: 0.12s;
}

.cascade-item:nth-child(3) {
    transition-delay: 0.19s;
}

.cascade-item:nth-child(4) {
    transition-delay: 0.26s;
}

.cascade-item:nth-child(5) {
    transition-delay: 0.33s;
}

.cascade-item:nth-child(6) {
    transition-delay: 0.40s;
}

/* ======== Parallax Background Layers ======== */
.parallax-layer {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.parallax-orb {
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
}

.parallax-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--amber);
    top: 10%;
    left: -10%;
    animation: orbDrift1 20s ease-in-out infinite;
}

.parallax-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--amber-light);
    top: 60%;
    right: -8%;
    animation: orbDrift2 25s ease-in-out infinite;
}

.parallax-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--amber-dark);
    top: 40%;
    left: 30%;
    animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(40px, -30px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes orbDrift2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-30px, 20px);
    }

    66% {
        transform: translate(20px, -40px);
    }
}

@keyframes orbDrift3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -25px);
    }
}

/* ======== Stats Section ======== */
.stats-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(52, 211, 153, 0.2), transparent);
}

.stat-card:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ======== Typewriter Enhanced Glow ======== */
.typewriter-cursor {
    text-shadow: 0 0 10px var(--amber-glow), 0 0 20px rgba(52, 211, 153, 0.15);
}

/* ======== Mission Quote Letter Reveal ======== */
.mission-quote p .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
}

.mission-quote p.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

/* ======== Divider Enhanced Animation ======== */
.divider-diamond {
    animation: diamondSpin 8s linear infinite;
}

@keyframes diamondSpin {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

.divider-line {
    animation: lineGlow 4s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

/* ======== Ecosystem Watermark Scroll ======== */
.ecosystem-section::after {
    animation: watermarkDrift 30s linear infinite;
}

@keyframes watermarkDrift {
    0% {
        transform: translate(-50%, -50%) translateX(0);
    }

    50% {
        transform: translate(-50%, -50%) translateX(40px);
    }

    100% {
        transform: translate(-50%, -50%) translateX(0);
    }
}

/* ======== Footer Torn Edge Enhancement ======== */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.15), transparent);
}

/* ======== Sub-product Stagger Animation ======== */
.sub-product {
    position: relative;
}

.sub-product::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--amber);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
    border-radius: 2px;
}

.sub-product:hover::before {
    transform: scaleY(1);
}

/* ======== Contact Section Enhanced ======== */
.contact-paper {
    position: relative;
    overflow: hidden;
}

.contact-paper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(52, 211, 153, 0.04) 0%,
            transparent 70%);
    animation: contactGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes contactGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(5%, 5%) scale(1.1);
        opacity: 1;
    }
}

.contact-paper>* {
    position: relative;
    z-index: 1;
}

/* ======== Scroll-triggered Line Draw ======== */
.line-draw {
    position: relative;
}

.line-draw::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    transition: width 1s var(--ease-out);
}

.line-draw.revealed::after {
    width: 100%;
}

/* ======== Hover Magnetic Pull on CTA ======== */
.hero-cta .btn-primary {
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), background 0.2s;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ======== Paper Noise Overlay on Body ======== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 60% at 20% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 70% 20%, rgba(52, 211, 153, 0.025) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ======== Enhanced Hero Headline Glow ======== */
.hero h1 {
    text-shadow: 0 0 60px rgba(52, 211, 153, 0.06);
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 120px 0 50px;
    }

    .stamp-badge {
        font-size: 0.62rem;
        letter-spacing: 2.5px;
        padding: 5px 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-card::after {
        display: none;
    }

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

    .post-body {
        padding: 28px 22px;
    }

    .post-body h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}