/* ============================================================
   SureGut LLC — modern animated theme
   Pure CSS, no framework. GitHub Pages friendly.
   ============================================================ */

:root {
    --primary: #0f172a;
    --primary-2: #131c33;
    --accent: #0d9488;
    --accent-2: #2dd4bf;
    --accent-3: #38bdf8;
    --text: #cbd5e1;
    --text-dim: #94a3b8;
    --heading: #f1f5f9;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.09);
    --radius: 18px;
    --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; color: var(--heading); }

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-3); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Animated aurora background ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, #15233f 0%, transparent 60%),
        var(--primary);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.blob-1 { width: 480px; height: 480px; background: #0d9488; top: -120px; left: -80px; animation: drift1 18s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: #2563eb; top: 20%; right: -140px; animation: drift2 22s ease-in-out infinite; }
.blob-3 { width: 420px; height: 420px; background: #7c3aed; bottom: -160px; left: 30%; animation: drift3 26s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,40px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-60px) scale(1.2); } }

/* subtle grain/grid overlay */
.bg-aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--maxw);
    margin: 0 auto;
    transition: padding .3s ease;
}
.nav.scrolled {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 24px;
    max-width: 100%;
}
.nav.scrolled .nav-inner-pad { max-width: var(--maxw); margin: 0 auto; }
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: "Sora", sans-serif; font-weight: 800;
    color: var(--heading); font-size: 1.05rem; letter-spacing: -0.3px;
}
.nav-brand:hover { color: var(--heading); }
.nav-logo {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #04211d; font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(13,148,136,0.45);
}
.nav-llc { color: var(--text-dim); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: var(--heading); }
.nav-cta {
    padding: 8px 18px; border-radius: 99px;
    background: var(--accent); color: #04211d !important; font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,148,136,0.4); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}
.hero-inner { max-width: 780px; }
.pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid var(--card-border);
    background: var(--card);
    color: var(--accent-2);
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 800;
    margin: 0 0 22px;
}
.grad-text {
    background: linear-gradient(110deg, var(--accent-2), var(--accent-3) 55%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600; font-size: 0.98rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #04211d;
    box-shadow: 0 10px 30px rgba(13,148,136,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,148,136,0.5); color: #04211d; }
.btn-ghost {
    background: var(--card);
    color: var(--heading);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); color: var(--heading); }

.hero-stats {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
    margin-top: 56px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-family: "Sora", sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--heading);
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.2px; }

.scroll-cue {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 2px solid var(--card-border); border-radius: 14px;
    display: grid; justify-items: center; padding-top: 7px;
}
.scroll-cue span {
    width: 4px; height: 8px; border-radius: 4px; background: var(--accent-2);
    animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.eyebrow {
    display: block;
    color: var(--accent-2); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -1px; margin: 0 0 18px; font-weight: 800;
}
.section-lead { font-size: 1.1rem; color: var(--text-dim); max-width: 680px; }

/* ---------- Product card ---------- */
.product-card {
    position: relative;
    margin-top: 32px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,0.4); }
.product-glow {
    position: absolute; top: -40%; right: -20%;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.35), transparent 65%);
    pointer-events: none;
}
.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #04211d; padding: 5px 14px; border-radius: 99px;
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.product-name { font-size: 1.7rem; margin: 16px 0 12px; letter-spacing: -0.5px; }
.product-desc { color: var(--text-dim); max-width: 560px; margin: 0 0 22px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.feature-list em { color: var(--accent-2); font-style: normal; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); flex: 0 0 auto; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges a { display: inline-block; transition: transform .25s ease, filter .25s ease; }
.store-badges a:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4)); }
.store-badges img { height: 52px; width: auto; display: block; }

/* ---------- Services ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.service-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,0.4); background: rgba(255,255,255,0.06); }
.service-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(13,148,136,0.25), rgba(56,189,248,0.18));
    color: var(--accent-2); margin-bottom: 16px;
}
.service-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* ---------- Footer ---------- */
footer {
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
    padding: 56px 0 36px;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.footer-head { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); margin: 0 0 12px; }
footer address { font-style: normal; color: var(--text-dim); line-height: 1.7; }
footer p { color: var(--text-dim); margin: 0; }
.footer-bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid var(--card-border);
    font-size: 0.88rem; color: var(--text-dim);
}
.footer-legal { display: flex; gap: 22px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-stats { gap: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card { padding: 28px; }
}

/* ============================================================
   APP PAGE (app.html)
   ============================================================ */

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    min-height: 100vh;
    padding: 140px 0 80px;
}
.app-hero-copy { max-width: 600px; }
.app-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.06; letter-spacing: -1.5px; margin: 16px 0 18px; font-weight: 800;
}
.app-hero-text { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-dim); margin: 0 0 28px; }
.app-hero .store-badges { margin-bottom: 18px; }
.fine-print { color: var(--text-dim); font-size: 0.88rem; }

/* Scan visual */
.scan-stage { display: grid; justify-items: center; }
.scan-visual {
    position: relative;
    width: min(100%, 380px);
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    backdrop-filter: blur(14px);
    overflow: hidden;
    animation: visualFloat 6s ease-in-out infinite;
}
.concept-note {
    display: inline-block; margin-bottom: 16px; padding: 6px 12px;
    border: 1px solid var(--card-border); border-radius: 99px;
    background: var(--card); color: var(--text-dim);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.barcode-card {
    position: absolute; top: 64px; right: 24px;
    display: flex; align-items: stretch; gap: 5px;
    width: 104px; height: 58px; padding: 11px;
    border-radius: 10px; background: #f8fafc;
    box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.barcode-card span { display: block; width: 6px; background: #0f172a; }
.barcode-card span:nth-child(2), .barcode-card span:nth-child(5) { width: 3px; }
.barcode-card span:nth-child(3), .barcode-card span:nth-child(7) { width: 9px; }

.scan-card {
    position: relative; margin-top: 8px; padding: 22px; min-height: 220px;
    border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.04); border: 1px solid var(--card-border);
}
.label-preview { display: grid; gap: 12px; }
.label-preview span { display: block; height: 12px; border-radius: 99px; background: rgba(255,255,255,0.12); }
.label-preview .label-title {
    width: 70%; height: auto; color: var(--heading); background: transparent;
    border-bottom: 4px solid var(--heading); border-radius: 0; padding-bottom: 8px;
    font-family: "Sora", sans-serif; font-size: 1.4rem; font-weight: 800; line-height: 1;
}
.label-preview span:nth-child(2) { width: 92%; height: 38px; background: rgba(255,255,255,0.16); }
.label-preview span:nth-child(3) { width: 80%; }
.label-preview span:nth-child(4) { width: 56%; }
.label-preview span:nth-child(5) { width: 72%; }
.scan-line {
    position: absolute; right: 16px; left: 16px; height: 3px; border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    box-shadow: 0 0 22px var(--accent-2);
    animation: scanMove 2.6s ease-in-out infinite;
}
.verdict-panel {
    margin-top: 16px; padding: 18px; border-radius: 14px;
    /* "Fits Profile" = green/success, mirroring the app */
    background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(16,185,129,0.08));
    border: 1px solid rgba(52,211,153,0.35);
    animation: verdictPulse 4.5s ease-in-out infinite;
}
.verdict-kicker { display: block; margin-bottom: 8px; color: var(--text-dim); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.verdict-head {
    display: flex; align-items: center; gap: 9px;
    color: var(--heading); font-family: "Sora", sans-serif; font-size: 1.2rem;
    font-weight: 800; line-height: 1.15;
}
.verdict-icon {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 24px; height: 24px; border-radius: 50%;
    background: #34d399; color: #04231a; font-size: 0.85rem; font-weight: 900;
}
.verdict-detail { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.verdict-detail li {
    position: relative; padding-left: 18px;
    color: var(--text-dim); font-size: 0.82rem; line-height: 1.45;
}
.verdict-detail li::before {
    content: ""; position: absolute; left: 0; top: 7px;
    width: 8px; height: 8px; border-radius: 50%;
}
.verdict-detail li.ok::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.7); }
.verdict-detail li.warn::before { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.7); }
.verdict-detail strong { color: var(--heading); font-weight: 600; }

@keyframes visualFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes scanMove { 0% { top: 48px; opacity: 0; } 16%,84% { opacity: 1; } 100% { top: 180px; opacity: 0; } }
@keyframes verdictPulse { 0%,100% { transform: scale(1); } 46% { transform: scale(1.02); } }

/* Steps */
.step-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-top: 36px;
}
.step-card {
    padding: 28px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--card-border);
    transition: transform .3s ease, border-color .3s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,0.4); }
.step-number {
    display: inline-block; margin-bottom: 16px;
    font-family: "Sora", sans-serif; font-weight: 800; font-size: 1rem;
    color: var(--accent-2);
}
.step-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.step-card p { color: var(--text-dim); margin: 0; }

/* Profiles */
.profile-board { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.profile-chip {
    padding: 12px 18px; border-radius: 99px;
    background: var(--card); border: 1px solid var(--card-border); color: var(--text);
    font-weight: 600; font-size: 0.92rem;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.profile-chip.active, .profile-chip:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #04211d; border-color: transparent; transform: translateY(-3px);
}

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.plan {
    padding: 32px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--card-border);
    transition: transform .3s ease, border-color .3s ease;
}
.plan:hover { transform: translateY(-6px); }
.plan h3 { font-size: 1.4rem; margin: 0 0 10px; }
.plan p { color: var(--text-dim); }
.plan .price { display: inline-block; margin-top: 18px; font-family: "Sora", sans-serif; font-weight: 800; color: var(--accent-2); }
.plan.featured {
    background: linear-gradient(160deg, rgba(13,148,136,0.18), rgba(56,189,248,0.08));
    border-color: rgba(45,212,191,0.4);
}
.plan.featured .price { color: var(--accent-2); }
.plan-tag {
    display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 99px;
    background: var(--accent); color: #04211d; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}

@media (max-width: 860px) {
    .app-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; text-align: center; }
    .app-hero-copy { margin: 0 auto; }
    .app-hero .store-badges, .app-hero .hero-actions { justify-content: center; }
    .scan-stage { margin-top: 12px; }
}

/* ---------- Accessibility: respect reduced motion ---------- */
@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;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
