/* =====================================================
   GROWKSY — ABOUT PAGE
   Design tokens
   Paper background, ink display type, coral + teal accents.
   Signature: floating tool-tiles that drift and settle
   around the hero image — the visual idea of scattered
   tools converging into one dashboard.
===================================================== */

:root {
    --paper:        #F6F7F9;
    --paper-soft:    #FFFFFF;
    --ink:          #14182B;
    --ink-soft:      #3A3F55;
    --muted:        #5B6072;
    --line:         #E4E6EC;

    --coral:        #FF5A36;
    --coral-dark:    #E1431F;
    --coral-tint:    #FFE7DF;

    --teal:         #0E8074;
    --teal-tint:     #DFF1EE;

    --font-display:  'Fraunces', Georgia, serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:     'JetBrains Mono', 'SF Mono', monospace;

    --radius-sm:     10px;
    --radius-md:     18px;
    --radius-lg:     28px;

    --shadow-sm:     0 2px 10px rgba(20, 24, 43, 0.06);
    --shadow-md:     0 14px 36px rgba(20, 24, 43, 0.10);
    --shadow-lg:     0 24px 60px rgba(20, 24, 43, 0.14);

    --ease-spring:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   BASE
===================================================== */

.about-hero,
.story-section,
.stats-section,
.what-section,
.founder-section {
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

.about-hero h1,
.about-hero h2,
.story-section h2,
.what-section h2,
.founder-section h2 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-dark);
    background: var(--coral-tint);
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6);
    animation: pulseDot 2.4s infinite var(--ease-smooth);
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 90, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}

/* =====================================================
   SCROLL REVEAL (JS toggles .is-visible)
===================================================== */

[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-reveal="up"] {
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

[data-reveal="scale"] {
    transform: scale(0.92);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* =====================================================
   HERO
===================================================== */

.about-hero {
    padding: 100px 0 90px;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.55;
}

.hero-circle-1 {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, var(--coral-tint), transparent 70%);
}

.hero-circle-2 {
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -140px;
    background: radial-gradient(circle, var(--teal-tint), transparent 70%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
    z-index: 0;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.about-hero-content h1 {
    font-size: clamp(36px, 4.6vw, 54px);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 22px;
}

.about-hero-content h1 span {
    display: block;
    color: var(--coral);
    font-style: italic;
    font-weight: 500;
}

.about-hero-content > p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 480px;
    margin: 0 0 36px;
}

.about-hero-buttons {
    display: flex;
    gap: 16px;
}

.play-badge-link {
    display: inline-block;
    border-radius: var(--radius-sm);
    transition: transform 0.35s var(--ease-spring), filter 0.35s var(--ease-smooth);
}

.play-badge-link:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 10px 18px rgba(20, 24, 43, 0.18));
}

.play-badge {
    height: 54px;
    display: block;
}

/* --- hero stage: convergence motif --- */

.hero-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.hero-image-frame {
    position: absolute;
    inset: 8%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-soft);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: heroFrameIn 0.9s var(--ease-spring) both;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-orbit-ring {
    position: absolute;
    inset: 0;
    border: 1.5px dashed rgba(20, 24, 43, 0.14);
    border-radius: 50%;
    z-index: 1;
    animation: orbitSpin 38s linear infinite;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes heroFrameIn {
    from { opacity: 0; transform: scale(0.82) translateY(14px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.float-tile {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--paper-soft);
    border-radius: var(--radius-sm);
    padding: 9px 14px 9px 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow-md);
    z-index: 4;
    opacity: 0;
    animation: tileConverge 0.9s var(--ease-spring) both, tileFloat 6s ease-in-out infinite;
}

.float-tile span {
    font-size: 16px;
}

.tile-1 { top: 4%;  left: -6%;  --float-x: -10px; animation-delay: 0.15s, 0.9s; }
.tile-2 { top: 6%;  right: -8%; --float-x: 10px;  animation-delay: 0.3s, 1.1s; }
.tile-3 { bottom: 10%; left: -10%; --float-x: -8px; animation-delay: 0.45s, 1.3s; }
.tile-4 { bottom: 6%; right: -6%; --float-x: 9px;  animation-delay: 0.6s, 1.5s; }

@keyframes tileConverge {
    from { opacity: 0; transform: translate(calc(var(--float-x) * 3), -16px) scale(0.8); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes tileFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-8px) translateX(var(--float-x)); }
}

/* =====================================================
   STORY
===================================================== */

.story-section {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.story-content .section-badge {
    background: var(--teal-tint);
    color: var(--teal);
}

.story-content .section-badge .badge-dot { display: none; }

.story-content h2 {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 600;
    margin: 0 0 22px;
    line-height: 1.2;
}

.story-content p {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 16px;
}

.story-emphasis {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
    font-size: 19px !important;
    line-height: 1.6 !important;
}

.story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.story-mini-card {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth), border-color 0.4s;
}

.story-mini-card:nth-child(odd)  { transform: rotate(-1.2deg); }
.story-mini-card:nth-child(even) { transform: rotate(1.2deg); }

.story-mini-card:hover {
    transform: translateY(-6px) rotate(0deg);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.story-mini-card strong {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}

.story-mini-card span {
    font-size: 13.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   STATS
===================================================== */

.stats-section {
    padding: 20px 0 90px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-smooth), border-color 0.45s;
    position: relative;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--coral), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-smooth);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card strong {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 10px;
}

.stat-card h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.stat-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* =====================================================
   WHAT GROWKSY DOES
===================================================== */

.what-section {
    padding: 90px 0;
    background: var(--paper-soft);
}

.section-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 52px;
}

.section-heading .section-badge {
    background: var(--coral-tint);
    color: var(--coral-dark);
}

.section-heading h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    margin: 0 0 14px;
}

.section-heading p {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.what-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-smooth), background 0.45s;
}

.what-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: var(--paper-soft);
}

.what-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: var(--radius-sm);
    background: var(--coral-tint);
    margin-bottom: 18px;
    transition: transform 0.4s var(--ease-spring);
}

.what-card:hover .what-icon {
    transform: scale(1.1) rotate(-6deg);
}

.what-card h3 {
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
}

.what-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* =====================================================
   FOUNDER
===================================================== */

.founder-section {
    padding: 90px 0 110px;
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.founder-image {
    position: relative;
}

.founder-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle, var(--coral-tint), transparent 65%);
    filter: blur(30px);
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.06); }
}

.founder-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.founder-content .section-badge {
    background: var(--teal-tint);
    color: var(--teal);
}

.founder-content h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 600;
    margin: 0 0 6px;
}

.founder-role {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--coral-dark);
    margin-bottom: 22px;
}

.founder-content > p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 16px;
}

.founder-quote {
    position: relative;
    background: var(--paper-soft);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 26px 28px 26px 60px;
    margin: 28px 0 30px;
    box-shadow: var(--shadow-sm);
}

.founder-quote i {
    position: absolute;
    left: 22px;
    top: 22px;
    font-size: 22px;
    color: var(--coral);
    opacity: 0.5;
}

.founder-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
}

.founder-highlights {
    display: flex;
    gap: 28px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-item strong {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.highlight-item span {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .about-hero-grid,
    .story-grid,
    .founder-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-hero-image { order: -1; }

    .about-hero-content > p { max-width: 100%; }

    .stats-grid,
    .what-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .founder-wrapper { text-align: left; }

    .hero-stage { max-width: 380px; }
}

@media (max-width: 640px) {

    .about-hero { padding: 70px 0 56px; }
    .story-section { padding: 56px 0; }
    .stats-section { padding: 0 0 64px; }
    .what-section { padding: 64px 0; }
    .founder-section { padding: 64px 0 76px; }

    .container { padding: 0 18px; }

    .about-hero-content h1 { font-size: 32px; }

    .story-card { grid-template-columns: 1fr 1fr; gap: 12px; }
    .story-mini-card { padding: 18px 16px; }
    .story-mini-card strong { font-size: 21px; }

    .stats-grid,
    .what-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage { max-width: 300px; }

    .float-tile {
        font-size: 11px;
        padding: 7px 11px 7px 8px;
    }

    .founder-highlights {
        flex-wrap: wrap;
        gap: 20px;
    }

    .founder-quote {
        padding: 22px 20px 22px 52px;
    }

    .founder-quote p { font-size: 16.5px; }
}

@media (max-width: 420px) {
    .tile-1, .tile-2, .tile-3, .tile-4 {
        opacity: 0.92;
    }
    .hero-stage { max-width: 260px; }
}