/* === Variables === */
:root {
    --navy: #0f1b2e;
    --navy-light: #e8edf4;
    --teal: #2a7a8c;
    --teal-light: #e0f0f4;
    --teal-dark: #1e5c6a;
    --green: #15b555;
    --green-light: #e0f8eb;
    --blue: #3a8fd4;
    --blue-light: #e4f0fb;
    --bg: #f5f0ea;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-teal { color: var(--teal); }

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,240,234,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(245,240,234,0.95); }
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-muted); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: var(--teal-light); color: var(--teal); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.logo-text { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px; border-radius: 999px;
    background: var(--teal); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,122,140,0.4); }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--card); border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 16px 24px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.14); z-index: 200;
    }
    .nav-links.open a { padding: 12px 0; font-size: 1rem; }
}

/* === Hero (Splash Screen Style) === */
.hero {
    position: relative; padding: 140px 0 80px; overflow: hidden;
    background: var(--bg);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 {
    width: 500px; height: 500px; top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(42,122,140,0.08) 0%, transparent 70%);
}
.shape-2 {
    width: 400px; height: 400px; bottom: -100px; left: -120px;
    background: radial-gradient(circle, rgba(42,122,140,0.05) 0%, transparent 70%);
}

.hero-content {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
}

/* Splash shield container */
.splash-shield {
    position: relative; width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
}

/* Glow */
.splash-glow {
    position: absolute; inset: -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(42,122,140,0.15) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

/* Rings */
.splash-ring {
    position: absolute; border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.splash-ring-outer {
    width: 160px; height: 160px;
    border: 1.5px dashed rgba(42,122,140,0.25);
    animation: ringRotate 12s linear infinite;
}
.splash-ring-inner {
    width: 125px; height: 125px;
    border: 2px solid rgba(42,122,140,0.3);
    border-top-color: rgba(42,122,140,0.1);
    border-right-color: rgba(42,122,140,0.4);
    animation: ringRotateReverse 8s linear infinite;
}
@keyframes ringRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ringRotateReverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Orbiting dots */
.splash-dots {
    position: absolute; width: 200px; height: 200px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: ringRotate 8s linear infinite;
}
.splash-dots span {
    position: absolute; display: block; border-radius: 50%;
    background: var(--teal); top: 50%; left: 50%;
}
.splash-dots span:nth-child(1) { width: 5px; height: 5px; opacity: 0.5; transform: translate(-50%, -50%) rotate(0deg) translateX(80px); }
.splash-dots span:nth-child(2) { width: 4.5px; height: 4.5px; opacity: 0.43; transform: translate(-50%, -50%) rotate(15deg) translateX(80px); }
.splash-dots span:nth-child(3) { width: 4px; height: 4px; opacity: 0.36; transform: translate(-50%, -50%) rotate(30deg) translateX(80px); }
.splash-dots span:nth-child(4) { width: 3.5px; height: 3.5px; opacity: 0.29; transform: translate(-50%, -50%) rotate(45deg) translateX(80px); }
.splash-dots span:nth-child(5) { width: 3px; height: 3px; opacity: 0.22; transform: translate(-50%, -50%) rotate(60deg) translateX(80px); }
.splash-dots span:nth-child(6) { width: 2.5px; height: 2.5px; opacity: 0.15; transform: translate(-50%, -50%) rotate(75deg) translateX(80px); }

/* Shield icon */
.splash-icon {
    position: relative; z-index: 1;
    filter: drop-shadow(0 0 20px rgba(42,122,140,0.3));
}

/* Title */
.splash-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 700;
    letter-spacing: 0.08em; margin-bottom: 12px;
    background: linear-gradient(180deg, var(--teal) 0%, rgba(42,122,140,0.6) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.splash-subtitle {
    font-size: 0.82rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 28px;
}
.hero-desc {
    font-size: 1.05rem; color: var(--text-muted); max-width: 520px;
    line-height: 1.7; margin-bottom: 32px;
}
.hero-actions { margin-bottom: 40px; }
.hero-stats {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-label {
    font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}

@media (max-width: 560px) {
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .splash-shield { width: 160px; height: 160px; }
    .splash-ring-outer { width: 130px; height: 130px; }
    .splash-ring-inner { width: 100px; height: 100px; }
    .splash-icon { width: 52px; height: 52px; }
    .splash-dots span { transform-origin: center; }
    .splash-dots span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(65px); }
    .splash-dots span:nth-child(2) { transform: translate(-50%, -50%) rotate(15deg) translateX(65px); }
    .splash-dots span:nth-child(3) { transform: translate(-50%, -50%) rotate(30deg) translateX(65px); }
    .splash-dots span:nth-child(4) { transform: translate(-50%, -50%) rotate(45deg) translateX(65px); }
    .splash-dots span:nth-child(5) { transform: translate(-50%, -50%) rotate(60deg) translateX(65px); }
    .splash-dots span:nth-child(6) { transform: translate(-50%, -50%) rotate(75deg) translateX(65px); }
}

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
    background: var(--teal-light); color: var(--teal); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }

/* === Features === */
.features { padding: 96px 0; }
.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-card {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
}
.feature-icon.teal { background: var(--teal-light); }
.feature-icon.green { background: var(--green-light); }
.feature-icon.blue { background: var(--blue-light); }
.feature-icon.navy { background: var(--navy-light); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.feature-list {
    list-style: none; padding: 0; margin: 10px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.feature-list li {
    font-size: 0.78rem; font-weight: 500;
    padding: 4px 10px; border-radius: 999px;
    background: var(--bg); color: var(--text-muted);
}

@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* === How It Works === */
.how-it-works { padding: 96px 0; background: var(--teal-light); }
.steps {
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 24px;
}
.step {
    background: var(--card); border-radius: var(--radius); padding: 28px 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: flex-start; gap: 20px;
}
.step-number {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: var(--teal); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
}
.step-text h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* === Screenshots === */
.screenshots { padding: 96px 0; }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item { flex-shrink: 0; width: 260px; scroll-snap-align: start; }
.screenshot-item img {
    width: 100%; border-radius: 22px;
    box-shadow: 0 10px 36px rgba(15,27,46,0.18);
    transition: transform 0.3s ease;
}
.screenshot-item img:hover { transform: scale(1.03); }
.screenshot-caption {
    text-align: center; margin-top: 14px;
    font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-btn {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.scroll-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
}
@media (max-width: 560px) { .screenshot-item { width: 180px; } }

/* === Highlights === */
.highlights { padding: 60px 0; }
.highlights-grid {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
    max-width: 800px; margin: 0 auto;
}
.highlight-item {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); padding: 10px 18px; border-radius: 999px;
    box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 500;
}
.highlight-icon { font-size: 1.1rem; }

/* === Our Story === */
.our-story { padding: 96px 0; background: var(--navy-light); }
.story-content {
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 24px;
}
.story-block {
    background: var(--card); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
}
.story-block h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--teal); }
.story-block p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.story-block p + p { margin-top: 12px; }
.story-block em { font-style: italic; color: var(--text); }
.story-link { color: var(--teal); font-weight: 600; transition: opacity 0.2s; }
.story-link:hover { opacity: 0.7; }

/* === CTA === */
.cta { padding: 80px 0 96px; }
.cta-card {
    text-align: center; padding: 64px 40px; border-radius: 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
    color: #fff;
    display: flex; flex-direction: column; align-items: center;
}
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cta-card p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 32px; }

/* === Footer === */
.footer { padding: 32px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 560px) {
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* === Animations === */
[data-animate] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible {
    opacity: 1; transform: translateY(0);
}


/* --- Mobile minimum type size ----------------------------------------
   Uppercase letterspaced labels are the hardest small text to read, and
   these fell under 12px on a phone. Held at 12px below 560px only, so the
   desktop scale is untouched. */
@media (max-width: 560px) {
    .screenshot-caption { font-size: 12px; }   /* was 11.8px */
}
