/* ══════════════════════════════════════
   GST E-Invoice Scanner — style.css
   Brand: #547792 (steel blue) · #1A3263 (deep navy)
   Backgrounds: white · black
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Mono:wght@400;500&display=swap');

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

/* ── TOKENS ── */
:root {
    --navy:       #1A3263;
    --steel:      #547792;
    --white:      #ffffff;
    --black:      #0a0a0a;
    --off-white:  #f4f6f9;
    --text-dark:  #1a1a2e;
    --text-muted: #6b7a99;
    --border:     #dde3ef;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Sora', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: var(--navy);
    border-bottom: 3px solid var(--steel);
    animation: slideDown 0.7s ease both;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--white);
}

.nav-logo span {
    color: #8ab4d4;
}

.nav-cta {
    padding: 9px 24px;
    background: var(--white);
    color: var(--navy);
    border: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(26,50,99,0.15);
}

.nav-cta:hover {
    background: var(--steel);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84,119,146,0.35);
}

/* ════════════════════════════════
   HERO  (white bg)
   ════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 20px 90px;
    background: var(--white);
    overflow: hidden;
}

/* Soft blue wash behind hero */
.hero-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(84,119,146,0.10) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: orbPulse 5s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
    50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 1;   }
}

/* thin animated lines (decorative) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(84,119,146,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84,119,146,0.05) 1px, transparent 1px);
    background-size: 70px 70px;
    animation: gridDrift 22s linear infinite;
    pointer-events: none;
}

@keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 70px 70px; }
}

.hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: 1px solid var(--steel);
    background: rgba(84,119,146,0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 28px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--steel);
    border-radius: 50%;
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -2px;
    color: var(--navy);
    animation: fadeUp 0.8s 0.4s ease both;
    max-width: 800px;
}

.hero h1 .highlight {
    color: var(--steel);
}

.hero h2 {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 300;
    color: var(--text-muted);
    animation: fadeUp 0.8s 0.55s ease both;
    max-width: 500px;
}

.hero-btn {
    position: relative;
    z-index: 1;
    margin-top: 38px;
    display: inline-block;
    padding: 14px 38px;
    background: var(--navy);
    color: var(--white);
    border: none;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    animation: fadeUp 0.8s 0.7s ease both;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(26,50,99,0.25);
    letter-spacing: 0.2px;
}

.hero-btn:hover {
    background: var(--steel);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(84,119,146,0.4);
}

.hero-btn:active { transform: scale(0.98); }

/* Stats bar */
.stats-bar {
    position: relative;
    z-index: 1;
    margin-top: 72px;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.9s ease both;
}

.stat { text-align: center; }

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    font-family: 'DM Mono', monospace;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ════════════════════════════════
   SOLVE SECTION  (off-white bg)
   ════════════════════════════════ */
.solve {
    background: var(--off-white);
    padding: 100px 40px;
    text-align: center;
    position: relative;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 56px;
}

.cards-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1020px;
    margin: 0 auto;
}

/* ── CARDS — no border-radius ── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    padding: 36px 28px 28px;
    max-width: 300px;
    flex: 1 1 260px;
    text-align: left;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.card.visible {
    animation: fadeUp 0.55s ease forwards;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.13s; }
.card:nth-child(3) { animation-delay: 0.26s; }

/* Sliding bottom accent line on hover */
.card-line {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--steel);
    transition: width 0.35s ease;
}

.card:hover { 
    transform: translateY(-7px); 
    box-shadow: 0 16px 40px rgba(26,50,99,0.12);
    border-color: var(--steel);
}

.card:hover .card-line { width: 100%; }

.card-icon {
    font-size: 30px;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ════════════════════════════════
   CONTACT  (black bg)
   ════════════════════════════════ */
.contact {
    background: var(--black);
    padding: 100px 40px;
    text-align: center;
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--steel);
    padding: 54px 48px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.contact-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* subtle glow */
.contact-inner::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(84,119,146,0.12) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
    animation: orbPulse 5s ease-in-out infinite;
}

.contact-inner .section-tag.light {
    color: var(--steel);
}

.contact-inner h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-inner p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid var(--steel);
    background: rgba(84,119,146,0.1);
    font-size: 14px;
    font-weight: 600;
    color: #8ab4d4;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.2px;
}

.email-pill:hover {
    background: var(--steel);
    color: var(--white);
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(84,119,146,0.35);
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer {
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    padding: 22px;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

footer a {
    color: var(--steel);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover { color: #8ab4d4; }

/* ════════════════════════════════
   SHARED KEYFRAME
   ════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .stats-bar { gap: 20px; }
    .stat-divider { display: none; }
    .contact-inner { padding: 36px 24px; }
    .cards-grid { gap: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { letter-spacing: -1px; }
    .email-pill { font-size: 12px; padding: 12px 18px; }
}


/* ════════════════════════════════
   HOW WE SOLVE  (white bg)
   ════════════════════════════════ */
.how {
    background: var(--white);
    padding: 100px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.how-grid {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
}

.how-card {
    flex: 1 1 340px;
    max-width: 400px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--steel);
    padding: 36px 32px;
    text-align: left;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.how-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,50,99,0.1);
}

.how-num {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--steel);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.how-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.4;
}

.how-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #0B2D72;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: black;
    transform: scale(1.05);
}


/* ════════════════════════════════
   PRICING
   ════════════════════════════════ */
.pricing {
    background: var(--off-white);
    padding: 100px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1020px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    padding: 40px 32px;
    flex: 1 1 260px;
    max-width: 300px;
    text-align: left;
    position: relative;
    transition: transform 0.35s, box-shadow 0.35s;
}

.pricing-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(26,50,99,0.12);
}

.pricing-card.featured {
    border-top-color: var(--steel);
    background: var(--navy);
    color: var(--white);
}

.pricing-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--steel);
    color: var(--white);
    padding: 4px 12px;
    margin-bottom: 16px;
}

.pricing-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 10px;
}

.pricing-card.featured .pricing-tier {
    color: #8ab4d4;
}

.pricing-price {
    font-family: 'DM Mono', monospace;
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-card.featured .pricing-price {
    color: var(--white);
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card.featured .pricing-price span {
    color: rgba(255,255,255,0.4);
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pricing-card.featured .pricing-desc {
    color: rgba(255,255,255,0.5);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 13px;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--steel);
    font-weight: 700;
}

.pricing-card.featured .pricing-features li {
    color: rgba(255,255,255,0.75);
    border-bottom-color: rgba(255,255,255,0.1);
}

.pricing-card.featured .pricing-features li::before {
    color: #8ab4d4;
}

.pricing-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background: var(--navy);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.2s;
}

.pricing-btn:hover {
    background: var(--steel);
    transform: translateY(-2px);
}

.pricing-card.featured .pricing-btn {
    background: var(--steel);
}

.pricing-card.featured .pricing-btn:hover {
    background: #8ab4d4;
    color: var(--navy);
}

/* ════════════════════════════════
   TERMS & CONDITIONS
   ════════════════════════════════ */
.terms {
    background: var(--black);
    padding: 100px 40px;
}

.terms-inner {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.terms-inner h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.8px;
    margin-bottom: 56px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.terms-block {
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--steel);
    padding: 24px 20px;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

.terms-block:hover {
    background: rgba(84,119,146,0.07);
}

.terms-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.terms-block p {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .pricing-grid { gap: 16px; }
    .terms-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════
   FAQ
   ════════════════════════════════ */
.faq {
    background: var(--off-white);
    padding: 70px 40px 100px;
    max-width: 780px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.faq-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-icon {
    font-size: 16px;
    color: var(--steel);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-answer.open {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq { padding: 60px 20px 80px; }
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link-subtle {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-link-subtle:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .nav-link-subtle { font-size: 11px; }
}