/* =========================================================
   Study Buddie — Global Stylesheet (Aesthetics Pass)
   Brand: Blue (#1B6B93) -> Green (#2ECC71)
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Design Tokens ---------- */
:root {
    --primary-blue: #1B6B93;
    --primary-mid: #1D8B6E;
    --primary-green: #2ECC71;

    --gradient-main: linear-gradient(135deg, #1B6B93 0%, #1D8B6E 50%, #2ECC71 100%);
    --gradient-line: linear-gradient(90deg, #1B6B93, #2ECC71);
    --gradient-hero: linear-gradient(160deg, #E8F6F3 0%, #EBF5FB 40%, #FDFEFE 100%);
    --gradient-glass: linear-gradient(135deg, rgba(27,107,147,0.03) 0%, rgba(46,204,113,0.03) 100%);

    --dark-heading: #1A202C;
    --dark-strong: #2D3748;
    --dark-body: #4A5568;
    --muted-text: #A0AEC0;

    --section-bg-light: #F7FAFC;
    --section-bg-white: #FFFFFF;

    --card-bg: #FFFFFF;
    --card-border: rgba(27, 107, 147, 0.06);
    --card-border-hover: rgba(27, 107, 147, 0.12);
    --input-bg: #FAFCFD;

    --shadow-card: 0 1px 3px rgba(27,107,147,0.04), 0 4px 16px rgba(27,107,147,0.03);
    --shadow-card-hover: 0 4px 8px rgba(27,107,147,0.04), 0 12px 40px rgba(27,107,147,0.10), 0 24px 60px rgba(27,107,147,0.04);
    --shadow-image: 0 8px 32px rgba(27,107,147,0.08), 0 24px 64px rgba(27,107,147,0.05);
    --shadow-image-hover: 0 12px 40px rgba(27,107,147,0.12), 0 32px 80px rgba(27,107,147,0.06);
    --shadow-btn: 0 4px 14px rgba(27,107,147,0.20), 0 1px 3px rgba(27,107,147,0.10);
    --shadow-btn-hover: 0 8px 28px rgba(27,107,147,0.28), 0 2px 6px rgba(27,107,147,0.12);

    --success-green-light: rgba(46, 204, 113, 0.07);

    --footer-bg: #0C1F2E;
    --footer-text: #CBD5E0;

    --radius-card: 18px;
    --radius-btn: 13px;
    --radius-pill: 100px;

    --container-w: 1180px;

    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-cta: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--dark-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    animation: fadeIn 0.7s ease forwards;
    position: relative;
}

/* Faint film grain across the entire page */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    mix-blend-mode: multiply;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

p { margin: 0; }

::selection {
    background: rgba(27, 107, 147, 0.15);
    color: var(--dark-heading);
}

*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Custom scrollbar (webkit only — Firefox falls back gracefully) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F0F4F8; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1B6B93, #2ECC71);
    border-radius: 8px;
    border: 2px solid #F0F4F8;
}
::-webkit-scrollbar-thumb:hover { border-width: 1px; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: clamp(80px, 10vw, 130px) 0;
    position: relative;
    overflow: hidden;
}

.section--light { background: var(--section-bg-light); }
.section--white { background: var(--section-bg-white); }

/* Soft ambient orbs for any decorated section */
.section--decorated::before,
.section--decorated::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}
.section--decorated::before {
    width: 420px; height: 420px;
    top: -120px; right: -120px;
    background: radial-gradient(circle, rgba(27,107,147,0.06) 0%, transparent 70%);
}
.section--decorated::after {
    width: 360px; height: 360px;
    bottom: -100px; left: -100px;
    background: radial-gradient(circle, rgba(46,204,113,0.05) 0%, transparent 70%);
}
.section > .container { position: relative; z-index: 1; }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    position: relative;
    z-index: 1;
}
.section__head .badge { margin-bottom: 18px; }

.section__title {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--dark-body);
    line-height: 1.78;
    max-width: 640px;
    margin: 0 auto;
}

/* Legacy .blob spans — softened to ambient orbs */
.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}
.blob--blue {
    background: radial-gradient(circle, rgba(27,107,147,0.08) 0%, transparent 70%);
}
.blob--green {
    background: radial-gradient(circle, rgba(46,204,113,0.07) 0%, transparent 70%);
}
.blob--tr { top: -120px; right: -120px; width: 420px; height: 420px; }
.blob--bl { bottom: -120px; left: -120px; width: 360px; height: 360px; }
.blob--small { width: 260px; height: 260px; }

/* ---------- Typography helpers ---------- */
.gradient-text {
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-blue);
}

/* Pill badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-green-light);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(46, 204, 113, 0.14);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.18); }
    50%      { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 38px;
    border-radius: var(--radius-btn);
    font-weight: 650;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out-cta),
                box-shadow 0.4s var(--ease-out-cta),
                background-position 0.6s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1B6B93 0%, #1D8B6E 50%, #2ECC71 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
    background-position: 100% 50%;
}
.btn-primary:hover::before { left: 125%; }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid rgba(27, 107, 147, 0.20);
}
.btn-outline:hover {
    background: rgba(27,107,147,0.03);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(27, 107, 147, 0.10);
}
.btn-outline:active { transform: translateY(-1px) scale(0.98); }

.btn-on-grad {
    background: #fff;
    color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.btn-on-grad:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.btn-block { width: 100%; }

.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* "Learn More" gradient link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: gap 0.3s ease;
}
.link-arrow svg { stroke: var(--primary-green); transition: transform 0.3s ease; }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out-soft),
                transform 0.9s var(--ease-out-soft);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s var(--ease-out-soft),
                transform 0.9s var(--ease-out-soft);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s var(--ease-out-soft),
                transform 0.9s var(--ease-out-soft);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s var(--ease-out-soft),
                transform 1s var(--ease-out-soft);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.0);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(27, 107, 147, 0.06);
    box-shadow: 0 1px 12px rgba(0,0,0,0.03);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.nav-brand .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-link {
    position: relative;
    color: var(--dark-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%;
    bottom: -4px;
    height: 2px;
    background: var(--gradient-line);
    border-radius: 2px;
    transition: left 0.35s var(--ease-out-cta), right 0.35s var(--ease-out-cta);
}
.nav-link:hover,
.nav-link.is-active { color: var(--primary-blue); }
.nav-link:hover::after,
.nav-link.is-active::after { left: 0; right: 0; }

.nav-cta { padding: 11px 22px; border-radius: 9px; font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1100;
}
.nav-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--dark-heading);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-cta), top 0.3s ease, opacity 0.2s ease, width 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

main { padding-top: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--gradient-hero);
    padding: clamp(110px, 14vw, 170px) 0 clamp(70px, 10vw, 120px);
    overflow: hidden;
    isolation: isolate;
}
.hero--full {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero--compact {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: clamp(110px, 12vw, 150px) 0 clamp(60px, 8vw, 100px);
}

/* Faint dot grid faded toward edges */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(27,107,147,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -0.025em;
    margin: 18px 0 22px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--dark-body);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-image-wrap {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 80px auto 0;
}
.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-image);
    background: linear-gradient(135deg, #EBF5FB, #E8F6F3);
    border: 1px solid var(--card-border);
}

/* Hero divider */
.hero-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(27,107,147,0.18), rgba(46,204,113,0.18), transparent);
}

/* ---------- "Why" 3-column cards ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.why-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 38px 34px 34px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-cta),
                box-shadow 0.5s var(--ease-out-cta),
                border-color 0.4s ease;
    box-shadow: var(--shadow-card);
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease-out-cta);
}
.why-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    pointer-events: none;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-border-hover);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover::after { transform: translateX(100%); }
.why-card:hover .why-icon {
    background: linear-gradient(135deg, rgba(27,107,147,0.12), rgba(46,204,113,0.12));
    transform: scale(1.08) rotate(-3deg);
}

.why-card .why-num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.16;
    letter-spacing: -0.04em;
}

.why-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27,107,147,0.06), rgba(46,204,113,0.06));
    color: var(--primary-blue);
    margin-bottom: 22px;
    transition: transform 0.4s var(--ease-out-cta), background 0.4s ease;
}
.why-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }

.why-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.32;
    margin-bottom: 12px;
    color: var(--dark-heading);
}
.why-text {
    font-size: 0.98rem;
    color: var(--dark-body);
    line-height: 1.72;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, #1B6B93 0%, #1D8B6E 40%, #2ECC71 100%);
    background-size: 200% 200%;
    animation: gradientShift 9s ease-in-out infinite;
    color: #fff;
    border-radius: 24px;
    padding: clamp(56px, 7vw, 88px) clamp(28px, 6vw, 72px);
    text-align: center;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 24px 56px rgba(27,107,147,0.18);
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
    animation: float 11s ease-in-out infinite;
}
.cta-banner::before {
    width: 240px; height: 240px;
    top: -100px; right: -60px;
}
.cta-banner::after {
    width: 180px; height: 180px;
    bottom: -60px; left: -50px;
    animation-delay: -4s;
}

.cta-banner h2 {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.cta-banner p {
    color: rgba(255,255,255,0.90);
    max-width: 580px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
}
.cta-banner .btn { position: relative; z-index: 2; }

/* ---------- Module / Feature alternating ---------- */
.module {
    padding: clamp(80px, 10vw, 130px) 0;
    position: relative;
    overflow: hidden;
}
.module--light { background: var(--section-bg-light); }

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.module--reverse .module-grid {
    grid-template-areas: "text image";
}
.module--reverse .module-grid .module-text { grid-area: text; }
.module--reverse .module-grid .module-image { grid-area: image; }

/* Image with ghost frame parallax decoration */
.module-image {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.6s var(--ease-out-cta);
}
.module-image::after {
    content: '';
    position: absolute;
    top: 16px; left: 16px; right: -16px; bottom: -16px;
    border-radius: 22px;
    border: 2px solid rgba(27,107,147,0.06);
    z-index: 0;
    pointer-events: none;
}
.module-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    box-shadow: var(--shadow-image);
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, #EBF5FB, #E8F6F3);
    transition: transform 0.6s var(--ease-out-cta), box-shadow 0.6s var(--ease-out-cta);
}
.module-image:hover img {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-image-hover);
}

.module-text {
    position: relative;
    padding: 8px 0;
}
.module-text .badge { margin-bottom: 18px; }

.module-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.module-desc {
    color: var(--dark-body);
    font-size: 1rem;
    line-height: 1.78;
    margin-bottom: 26px;
}

.feature-list {
    margin-bottom: 28px;
}
.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--dark-strong);
    line-height: 1.6;
}
.feature-list .check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success-green-light);
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: transform 0.45s var(--ease-overshoot), background 0.3s ease;
}
.feature-list .check svg { width: 14px; height: 14px; stroke-width: 3; }
.feature-list li.visible .check { animation: checkPop 0.6s var(--ease-overshoot) both; }
@keyframes checkPop {
    0%   { opacity: 0; transform: scale(0.5); }
    70%  { transform: scale(1.18); }
    100% { opacity: 1; transform: scale(1); }
}

/* Watermark numbers (visibility page) */
.module--watermark { position: relative; }
.module-watermark {
    position: absolute;
    top: -28px;
    right: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    z-index: 0;
}
.module-text > *:not(.module-watermark) { position: relative; z-index: 1; }

/* ---------- Features grid (3x3) ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.feature-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 38px 28px 32px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-cta),
                box-shadow 0.5s var(--ease-out-cta),
                border-color 0.4s ease;
    box-shadow: var(--shadow-card);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease-out-cta);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-border-hover);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .feature-icon {
    background: var(--gradient-main);
    color: #fff;
    transform: scale(1.08) rotate(-3deg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27,107,147,0.06) 0%, rgba(46,204,113,0.06) 100%);
    color: var(--primary-blue);
    margin-bottom: 22px;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-out-cta);
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--dark-heading);
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--dark-body);
    line-height: 1.72;
}

/* ---------- About narrative ---------- */
.story {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}
.story::before {
    content: '\201C';
    position: absolute;
    top: -90px;
    left: -30px;
    font-family: 'Sora', serif;
    font-size: 13rem;
    line-height: 1;
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.07;
    pointer-events: none;
}
.story p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-body);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    position: relative;
    z-index: 1;
}
.mv-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 38px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-cta), box-shadow 0.5s var(--ease-out-cta);
}
.mv-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    transition: background 0.4s ease;
}
.mv-card--mission::before { background: var(--primary-blue); }
.mv-card--vision::before  { background: var(--primary-green); }
.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.mv-card:hover::before { background: var(--gradient-line); }

.mv-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--success-green-light);
    color: var(--primary-blue);
    margin-bottom: 18px;
}
.mv-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.mv-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-blue);
    margin-bottom: 8px;
}
.mv-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-heading);
}
.mv-card p {
    font-size: 0.98rem;
    color: var(--dark-body);
    line-height: 1.78;
}

/* Founder */
.founder {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.founder-photo {
    width: 170px;
    height: 170px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 4px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #1B6B93, #2ECC71) border-box;
    box-shadow: 0 8px 32px rgba(27,107,147,0.12);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.founder-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(27,107,147,0.18);
}

.founder-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.founder-role {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.founder-quote {
    font-style: italic;
    font-size: 1.08rem;
    background: linear-gradient(135deg, #1B6B93, #2ECC71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 22px;
}
.founder-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(27,107,147,0.20);
}
.founder-social:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(27,107,147,0.30);
}
.founder-social svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 42px;
    box-shadow: var(--shadow-card);
}

.contact-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-card .lede {
    color: var(--dark-body);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--dark-strong);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.input,
.textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(27, 107, 147, 0.08);
    border-radius: 13px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-heading);
    background: var(--input-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted-text); font-weight: 400; }
.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 107, 147, 0.06), 0 2px 8px rgba(27, 107, 147, 0.04);
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--primary-green);
    min-height: 1.2em;
}

.info-card {
    background: var(--gradient-hero);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 42px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: -120px; right: -100px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(27,107,147,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.info-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(27, 107, 147, 0.08);
    position: relative;
    z-index: 1;
}
.info-item:last-child { border-bottom: none; }

.info-ico {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(27,107,147,0.20);
}
.info-ico svg { width: 20px; height: 20px; stroke-width: 1.9; }

.info-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-text);
    margin-bottom: 4px;
}
.info-value {
    font-weight: 600;
    color: var(--dark-heading);
    font-size: 1.02rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}
a.info-value:hover { color: var(--primary-blue); }

/* ---------- Footer ---------- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 84px 0 32px;
    position: relative;
    overflow: hidden;
}
/* Animated brand gradient ribbon at the very top */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B6B93, #2ECC71, #1B6B93);
    background-size: 200% 100%;
    animation: gradientSlide 6s linear infinite;
}
@keyframes gradientSlide {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
/* Ambient glow centered above the footer interior */
.footer::after {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 560px; height: 320px;
    background: radial-gradient(ellipse, rgba(27,107,147,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
    margin-bottom: 56px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-tag {
    color: var(--footer-text);
    line-height: 1.7;
    max-width: 320px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
    color: var(--footer-text);
    font-size: 0.95rem;
    transition: color 0.25s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(203,213,224,0.7);
    position: relative;
    z-index: 1;
}

/* ---------- Touch device gating: drop hover translates ---------- */
@media (hover: none) {
    .why-card:hover,
    .feature-card:hover,
    .mv-card:hover,
    .module-image:hover img,
    .btn-primary:hover,
    .btn-outline:hover,
    .btn-on-grad:hover {
        transform: none;
    }
    .btn:active,
    .why-card:active,
    .feature-card:active,
    .mv-card:active { transform: scale(0.98); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .why-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .module-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .module--reverse .module-grid {
        grid-template-areas: none;
    }
    .module--reverse .module-grid .module-text,
    .module--reverse .module-grid .module-image { grid-area: auto; }
    .module--reverse .module-image { order: -1; }
    .module-image::after { display: none; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s var(--ease-out-cta), opacity 0.4s ease;
        z-index: 1050;
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .nav-links.is-open .nav-link { opacity: 1; transform: translateY(0); }
    .nav-links.is-open .nav-link:nth-child(1) { transition-delay: 0.10s; }
    .nav-links.is-open .nav-link:nth-child(2) { transition-delay: 0.18s; }
    .nav-links.is-open .nav-link:nth-child(3) { transition-delay: 0.26s; }
    .nav-links.is-open .nav-link:nth-child(4) { transition-delay: 0.34s; }
    .nav-links.is-open .nav-link:nth-child(5) { transition-delay: 0.42s; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; }

    .why-grid,
    .features-grid,
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-tag { margin: 0 auto; }
    .footer-brand { justify-content: center; }

    .section { padding: 64px 0; }
    .section__head { margin-bottom: 40px; }

    .hero-actions { gap: 12px; flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; min-height: 48px; }

    .module-grid { gap: 32px; }
    .module-watermark { font-size: 4.5rem; top: -16px; }

    .blob--tr, .blob--bl,
    .section--decorated::before,
    .section--decorated::after { width: 220px; height: 220px; }

    .why-card,
    .feature-card,
    .mv-card,
    .contact-card,
    .info-card { padding: 28px 22px; }

    .cta-banner { padding: 48px 24px; border-radius: 18px; }
}

@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;
    }
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    .float,
    .cta-banner,
    .footer::before { animation: none !important; }
}
