/* ═══════════════════════════════════════════════════════
   StorageAI Landing Page — Premium Dark Theme
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #111128;
    --bg-card-hover: #161640;
    --bg-surface: #0d0d24;
    --text: #e4e4f0;
    --text-muted: #8888a8;
    --text-dim: #5a5a7a;
    --accent: #4f7df9;
    --accent-light: #6b93ff;
    --accent-glow: rgba(79, 125, 249, 0.15);
    --accent-glow-strong: rgba(79, 125, 249, 0.3);
    --gradient: linear-gradient(135deg, #4f7df9 0%, #a855f7 50%, #ec4899 100%);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(79, 125, 249, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm {
    max-width: 760px;
}

/* ── Animations ── */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
[data-animate]:nth-child(2) {
    transition-delay: 0.08s;
}
[data-animate]:nth-child(3) {
    transition-delay: 0.16s;
}

/* ── Typography ── */
h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: center;
}
h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    font-size: 0.95rem;
    padding: 14px 32px;
    box-shadow: 0 4px 24px rgba(79, 125, 249, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 125, 249, 0.45);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.95rem;
    padding: 14px 32px;
    border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}
.btn-xl {
    padding: 20px 48px;
    font-size: 1.15rem;
    border-radius: 14px;
}
.btn-full {
    width: 100%;
}

/* ── Nav ── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.3s ease;
}
#nav.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--accent);
    color: #fff;
}

/* ═══ HERO ═══ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        rgba(79, 125, 249, 0.12) 0%,
        transparent 65%
    );
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--accent-glow);
    border: 1px solid rgba(79, 125, 249, 0.2);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero-proof {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.proof-item {
    text-align: center;
}
.proof-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.proof-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.proof-divider {
    width: 1px;
    height: 32px;
    background: var(--border-hover);
}
.hero-scroll-hint {
    text-align: center;
    margin-top: auto;
    padding-top: 40px;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.scroll-arrow {
    animation: bounce 2s infinite;
    margin-top: 4px;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Phone mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.phone-mockup {
    width: 300px;
    background: #1a1a3a;
    border-radius: 36px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        var(--shadow),
        var(--shadow-glow);
    position: relative;
}
.phone-notch {
    width: 120px;
    height: 28px;
    background: #0a0a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}
.phone-screen {
    background: #0d0d24;
    border-radius: 24px;
    padding: 16px;
    min-height: 420px;
    overflow: hidden;
}
.chat-window {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.chat-msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 85%;
    animation: fadeInMsg 0.5s ease both;
}
.chat-msg.ai {
    background: var(--accent-glow);
    border: 1px solid rgba(79, 125, 249, 0.15);
    color: var(--text);
    align-self: flex-start;
}
.chat-msg.caller {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    align-self: flex-end;
    margin-left: auto;
}
@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-msg:nth-child(2) {
    animation-delay: 0.3s;
}
.chat-msg:nth-child(3) {
    animation-delay: 0.8s;
}
.chat-msg:nth-child(4) {
    animation-delay: 1.4s;
}
.chat-msg:nth-child(5) {
    animation-delay: 2s;
}
.chat-msg:nth-child(6) {
    animation-delay: 2.6s;
}

/* Float cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(17, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    animation: floatIn 0.8s ease both;
}
.float-card-1 {
    top: 60px;
    right: -20px;
    animation-delay: 1.5s;
}
.float-card-2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 2s;
}
.float-card small {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.float-icon {
    font-size: 1.3rem;
}
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══ BENEFITS ═══ */
#benefits {
    padding: 120px 0;
    background: var(--bg-surface);
    position: relative;
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}
.benefit-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.benefit-card:hover::before {
    transform: scaleX(1);
}
.benefit-featured {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 125, 249, 0.06) 100%);
    border-color: var(--border-hover);
}
.benefit-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.benefit-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #fff;
}
.benefit-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}
.benefits-bottom {
    text-align: center;
    margin-top: 48px;
}
.benefit-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    padding: 0 24px;
}
.benefit-quote::before {
    content: '"';
    position: absolute;
    left: -8px;
    top: -16px;
    font-size: 4rem;
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    font-weight: 900;
    line-height: 1;
}
.benefit-attr {
    display: block;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ═══ PROBLEM ═══ */
#problem {
    padding: 120px 0;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.problem-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}
.problem-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.problem-stat {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.problem-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.problem-bottom {
    text-align: center;
    margin-top: 48px;
}
.problem-math {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 1.1rem;
    font-weight: 600;
}
.math-op {
    color: var(--text-dim);
    font-size: 1.5rem;
}
.math-result {
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.math-label {
    color: var(--text-dim);
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ═══ HOW IT WORKS ═══ */
#how {
    padding: 120px 0;
}
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: flex-start;
    margin-top: 48px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
    position: relative;
}
.step-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.step-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.step-card h3 {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}
.step-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-dim);
    font-size: 1.5rem;
    margin-top: 60px;
}
.step-connector::after {
    content: "→";
}

/* ═══ FEATURES ═══ */
#features {
    padding: 120px 0;
    background: var(--bg-surface);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    padding: 28px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}
.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ═══ COMPARISON ═══ */
#compare {
    padding: 120px 0;
}
.compare-table-wrap {
    margin-top: 48px;
    overflow-x: auto;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compare-table thead th {
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.compare-table thead th:first-child {
    text-align: left;
}
.compare-table thead th.highlight-col {
    color: var(--accent-light);
}
.compare-table tbody td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.compare-table tbody td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}
.compare-table tbody td.highlight-col {
    background: var(--accent-glow);
    color: var(--text);
    font-weight: 500;
}
.compare-price-row td {
    font-weight: 700;
    padding: 18px 20px;
}
.compare-price-row td.highlight-col {
    font-size: 1.1rem;
    color: #fff;
}

/* ═══ PRICING ═══ */
#pricing {
    padding: 120px 0;
    background: var(--bg-surface);
}
.pricing-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.price-card {
    max-width: 440px;
    width: 100%;
    padding: 40px 36px;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
    position: relative;
}
.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-top: 16px;
}
.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.price-tagline {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}
.price-list {
    list-style: none;
    text-align: left;
    margin: 28px 0;
    padding: 0;
}
.price-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.price-guarantee {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ROI */
.roi-box {
    max-width: 560px;
    margin: 48px auto 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.roi-box h3 {
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.roi-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}
.roi-label {
    color: var(--text-muted);
}
.roi-val {
    font-weight: 700;
    color: var(--text);
}
.roi-divider {
    border-top: 1px solid var(--border);
    margin: 8px 0;
}
.roi-result .roi-val {
    font-size: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══ PILOT ═══ */
#pilot {
    padding: 120px 0;
}
.pilot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.pilot-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}
.pilot-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.pilot-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.pilot-card h3 {
    margin-bottom: 8px;
}
.pilot-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══ FAQ ═══ */
#faq {
    padding: 120px 0;
    background: var(--bg-surface);
}
.faq-list {
    margin-top: 48px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-card);
    transition: all 0.3s;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--accent);
}
.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-dim);
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: "−";
    color: var(--accent);
}
.faq-item p {
    padding: 0 24px 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ═══ FINAL CTA ═══ */
#start {
    padding: 120px 0;
}
.final-cta {
    text-align: center;
    padding: 80px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--bg-card) 0%,
        rgba(79, 125, 249, 0.08) 100%
    );
    border: 1px solid var(--border-hover);
}
.final-cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 16px;
}
.final-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}
.final-proof {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══ FOOTER ═══ */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-proof {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .step-connector {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pilot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .float-card-1 {
        right: 10px;
    }
    .float-card-2 {
        left: 10px;
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .pilot-grid {
        grid-template-columns: 1fr;
    }
    .hero-proof {
        gap: 16px;
    }
    .final-cta {
        padding: 48px 20px;
    }
    .final-proof {
        gap: 12px;
        font-size: 0.78rem;
    }
    .compare-table {
        font-size: 0.8rem;
    }
    .compare-table thead th, .compare-table tbody td {
        padding: 10px 12px;
    }
    .price-card {
        padding: 32px 24px;
    }
    .price-amount {
        font-size: 2.8rem;
    }
    .float-card {
        display: none;
    }
    .problem-math {
        font-size: 0.9rem;
    }
    .math-result {
        font-size: 1.3rem;
    }
}
