/* =========================================================
   GST Invoice Maker — Website Styles
   ========================================================= */

:root {
  --blue:       #1565C0;
  --blue-dark:  #0D47A1;
  --teal:       #00897B;
  --gradient:   linear-gradient(135deg, #1565C0 0%, #00897B 100%);
  --bg:         #F4F7FF;
  --white:      #FFFFFF;
  --text:       #1A1A2E;
  --muted:      #6B7280;
  --border:     #E5E9F2;
  --shadow:     0 4px 24px rgba(21,101,192,0.10);
  --shadow-lg:  0 12px 48px rgba(21,101,192,0.18);
  --radius:     14px;
  --radius-sm:  8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--muted); }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--blue); }
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
       border-radius: 50px; font-weight: 600; font-size: 0.9rem;
       cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 16px rgba(21,101,192,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.35); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh; padding-top: 64px;
  background: var(--gradient);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15);
              border: 1px solid rgba(255,255,255,0.25); border-radius: 50px;
              padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-desc { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: #EFF6FF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.stat { color: #fff; }
.stat strong { font-size: 1.6rem; font-weight: 800; display: block; }
.stat span { font-size: 0.82rem; opacity: 0.75; }

.hero-phones { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 240px;
  background: #111;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.phone-frame img { border-radius: 32px; width: 100%; }
.phone-frame-back {
  width: 220px;
  position: absolute;
  top: 30px; right: -30px;
  opacity: 0.65;
  z-index: 1;
  background: #111;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.phone-frame-back img { border-radius: 30px; width: 100%; }

/* ── Section Label ── */
.section-label { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: rgba(21,101,192,0.1); color: var(--blue);
               font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
               padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-label h2 { color: var(--text); margin-bottom: 10px; }
.section-label p { max-width: 540px; margin: 0 auto; }

/* ── Features ── */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(21,101,192,0.2); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.4rem;
}
.feature-card h3 { color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* ── Screenshots ── */
.screenshots { background: var(--bg); }
.screenshots-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 48px; flex-wrap: wrap; }
.tab-btn { padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff;
           font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(21,101,192,0.25); }
.screenshots-row { display: flex; gap: 20px; justify-content: center; overflow-x: auto; padding-bottom: 16px; }
.screenshot-item { flex: 0 0 auto; }
.screenshot-item .phone-wrap {
  width: 190px;
  background: #111;
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.screenshot-item .phone-wrap img { border-radius: 26px; width: 100%; }
.screenshot-item .label { text-align: center; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

/* ── Perfect For ── */
.for-section { background: var(--white); }
.for-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.for-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  transition: all 0.2s;
}
.for-card:hover { border-color: var(--blue); background: rgba(21,101,192,0.04); }
.for-card .for-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Trust / Privacy ── */
.trust-section {
  background: var(--gradient); color: #fff;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-card { text-align: center; }
.trust-card .icon { font-size: 2.4rem; margin-bottom: 12px; }
.trust-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.05rem; }
.trust-card p { color: rgba(255,255,255,0.78); font-size: 0.9rem; }

/* ── CTA Banner ── */
.cta-banner { background: var(--white); text-align: center; }
.cta-banner h2 { color: var(--text); margin-bottom: 14px; }
.cta-banner p { max-width: 480px; margin: 0 auto 32px; }
.app-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; border-radius: 12px;
  padding: 10px 20px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
}
.app-badge:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.app-badge .badge-icon { font-size: 1.5rem; }
.app-badge small { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.7; }

/* ── Footer ── */
footer {
  background: #0D1B2A; color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
                 display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; }
.footer-bottom p { font-size: 0.82rem; }

/* ── Contact Page ── */
.contact-hero { background: var(--gradient); padding: 120px 0 80px; text-align: center; }
.contact-hero h1 { color: #fff; margin-bottom: 14px; }
.contact-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

.contact-section { background: var(--bg); padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }

.contact-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { color: var(--text); margin-bottom: 6px; font-size: 1.2rem; }
.contact-info-card > p { margin-bottom: 28px; font-size: 0.9rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(21,101,192,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-text { font-size: 0.88rem; }
.contact-item-text strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.contact-item-text span { color: var(--muted); }
.response-note { margin-top: 20px; background: rgba(0,137,123,0.08); border: 1px solid rgba(0,137,123,0.2);
                 border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.85rem; color: #00695C; }

.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { color: var(--text); margin-bottom: 6px; font-size: 1.2rem; }
.contact-form-card > p { margin-bottom: 28px; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; color: var(--text);
  background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; border-radius: 10px; cursor: pointer; }
.form-success { display: none; text-align: center; padding: 24px;
                background: rgba(0,137,123,0.08); border: 1px solid rgba(0,137,123,0.25);
                border-radius: var(--radius-sm); margin-top: 16px; }
.form-success .check { font-size: 2rem; margin-bottom: 8px; }
.form-success h4 { color: #00695C; }
.form-success p { font-size: 0.88rem; margin-top: 4px; }

/* ── FAQ ── */
.faq-section { background: var(--white); padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; cursor: pointer; }
.faq-question { display: flex; justify-content: space-between; align-items: center;
                font-weight: 600; color: var(--text); font-size: 0.95rem; }
.faq-question .icon { transition: transform 0.25s; font-size: 1.1rem; color: var(--blue); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-top: 10px; font-size: 0.9rem; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phones { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .for-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .for-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
