/* ============================================
   Konfirm.link — Landing Page Styles
   Font: Plus Jakarta Sans (Google Fonts)
   ============================================ */

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

:root {
  --bg: #0A0F1E;
  --bg-card: #111827;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --cta: #EA580C;
  --cta-hover: #C2410C;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --wa-green-contact: #005C4B;
  --wa-green-you: #1F2C34;
  --wa-bg: #0B141A;
  --wa-bubble-contact: #202C33;
  --wa-bubble-you: #005C4B;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ============================================
   Navigation
   ============================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 14px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-signin:hover {
  color: var(--text);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-nav {
  padding: 9px 18px;
  font-size: 0.875rem;
  border-radius: 8px;
  background: var(--cta);
  color: #fff;
}

.btn-nav:hover {
  background: var(--cta-hover);
}

/* ============================================
   Glass Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ============================================
   WhatsApp Chat Mockup
   ============================================ */

.chat-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 320px;
  background: var(--wa-bg);
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.iphone-status-bar {
  background: #1F2C34;
  padding: 10px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.status-time { font-size: 13px; font-weight: 700; }
.status-icons { display: flex; gap: 4px; align-items: center; }

.wa-header {
  background: #1F2C34;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wa-avatar {
  width: 36px;
  height: 36px;
  background: #2A3942;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wa-contact-info {
  flex: 1;
}

.wa-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.wa-contact-status {
  font-size: 11px;
  color: #8696A0;
}

.wa-chat-body {
  background: var(--wa-bg);
  padding: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-image: 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.015'%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");
}

.wa-bubble {
  max-width: 82%;
  padding: 7px 10px 4px;
  border-radius: 7.5px;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  color: #E9EDF0;
}

.wa-bubble-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-align: right;
  margin-top: 2px;
}

.wa-bubble.contact {
  background: var(--wa-bubble-contact);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-bubble.you {
  background: var(--wa-bubble-you);
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-bubble.you .wa-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.wa-check { color: #53BDEB; font-size: 11px; }

.wa-calendar-note {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #93C5FD;
  margin: 6px 0 0;
  align-self: center;
}

/* ============================================
   Section Header
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 0.9rem;
}

/* ============================================
   Features
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================
   Chat Demo
   ============================================ */

.chat-demo {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chat-demo-inner {
  max-width: 520px;
  margin: 0 auto;
}

.wa-window {
  background: var(--wa-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.wa-window-header {
  background: #1F2C34;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wa-window-avatar {
  width: 40px;
  height: 40px;
  background: #2A3942;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wa-window-info {
  flex: 1;
}

.wa-window-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.wa-window-sub {
  font-size: 12px;
  color: #8696A0;
}

.wa-window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-image: 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.015'%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");
}

.wa-msg {
  max-width: 78%;
  padding: 8px 12px 5px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #E9EDF0;
}

.wa-msg-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: right;
  margin-top: 3px;
}

.wa-msg.contact {
  background: var(--wa-bubble-contact);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-msg.you {
  background: var(--wa-bubble-you);
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-msg.you .wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   Pricing
   ============================================ */

.pricing {
  text-align: center;
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.pricing-amount {
  margin-bottom: 8px;
}

.pricing-amount .amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-amount .period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-per {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  color: #60A5FA;
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footnote {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }

  .nav-links { display: none; }
  .nav-signin { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid::before { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .iphone-frame { width: 290px; }

  .pricing-card { padding: 36px 28px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 14px 16px; }
  .iphone-frame { width: 100%; max-width: 320px; }
}
