/* Foundi — Public Pages Styles */

/* --- index --- */
/* ===== HERO ===== */
  .hero {
    padding: clamp(52px, 10vh, 104px) 0 clamp(32px, 6vh, 56px);
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
  }
  .hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(26,86,219,.08);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
  }
  .hero-tagline-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(13,159,85,.15);
  }
  .hero-title {
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.06;
    margin-bottom: 22px;
    color: var(--text);
  }
  .hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-desc {
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
  }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .hero-image { display: flex; justify-content: center; align-items: center; }
  .hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-2xl);
    filter: drop-shadow(0 20px 48px rgba(15,23,42,.1));
  }

  /* Trust bar */
  .trust-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
  }
  .trust-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    flex-shrink: 0;
  }

  /* ===== STATS ===== */
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
  }
  .stat-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur) var(--ease);
  }
  .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .stat-num {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--primary);
    line-height: 1.15;
  }
  .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .07em;
  }

  /* ===== DEMO ===== */
  .demo-section {
    padding: clamp(48px, 8vh, 88px) 0;
    text-align: center;
  }
  .demo-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: clamp(36px, 5vw, 56px);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  .demo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  }
  .demo-qr {
    width: 180px; height: 180px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 24px auto;
    transition: transform .3s var(--ease-spring);
  }
  .demo-qr:hover { transform: scale(1.04) rotate(1deg); }
  .demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(13,159,85,.1);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
  }

  /* ===== FEATURES ===== */
  .features-section { padding: clamp(48px, 8vh, 88px) 0; }
  .features-header { text-align: center; margin-bottom: 40px; }
  .features-header h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 10px;
  }
  .features-header p { color: var(--text-secondary); font-size: 16px; max-width: 420px; margin: 0 auto; }
  .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .feature-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--dur-slow) var(--ease-spring);
  }
  .feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
  .feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: transform .3s var(--ease-spring);
  }
  .feature-card:hover .feature-icon { transform: scale(1.08); }
  .feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
  .feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

  /* ===== HOW IT WORKS ===== */
  .hiw-section { padding: clamp(48px, 8vh, 88px) 0; position: relative; }
  .hiw-header { text-align: center; margin-bottom: 56px; }
  .hiw-header h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
  .hiw-header p { color: var(--text-secondary); font-size: 16px; max-width: 460px; margin: 0 auto; }
  .hiw-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
  }
  /* Connecting line */
  .hiw-timeline::before {
    content: '';
    position: absolute;
    top: 56px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
    opacity: .2;
  }
  .hiw-step {
    text-align: center;
    position: relative;
  }
  .hiw-icon-wrap {
    width: 112px; height: 112px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 1;
  }
  .hiw-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    transition: all .4s var(--ease-spring);
  }
  .hiw-step:hover .hiw-icon-wrap::before {
    border-color: var(--primary);
    box-shadow: 0 0 0 8px var(--primary-glow);
    transform: scale(1.06);
  }
  .hiw-icon-inner {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .4s var(--ease-spring);
  }
  .hiw-step:hover .hiw-icon-inner { transform: scale(1.08); }
  .hiw-step-num {
    display: inline-flex;
    width: 28px; height: 28px;
    align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    margin-bottom: 12px;
  }
  .hiw-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
  .hiw-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 280px; margin: 0 auto; }

  /* Use-case pills */
  .usecase-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
  }
  .usecase-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: all .3s var(--ease-spring);
    cursor: default;
  }
  .usecase-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
  .usecase-pill-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .hiw-timeline { grid-template-columns: 1fr; gap: 40px; }
    .hiw-timeline::before { display: none; }
    .usecase-bar { flex-direction: column; align-items: center; }
  }

  /* ===== CTA ===== */
  .cta-section { padding: clamp(32px, 6vh, 72px) 0 clamp(48px, 8vh, 96px); }
  .cta-box {
    background: linear-gradient(135deg, #0f2a5e 0%, #1a56db 50%, #0369a1 100%);
    border-radius: var(--radius-2xl);
    padding: clamp(44px, 6vw, 72px);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(26,86,219,.2);
  }
  .cta-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -25%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
  }
  .cta-box > * { position: relative; z-index: 1; }
  .cta-box h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.025em; }
  .cta-box p { font-size: 17px; opacity: .88; margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.6; }
  .btn-white { background: #fff; color: var(--primary); font-weight: 700; }
  .btn-white:hover { background: #f8fafc; color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 300px; margin: 0 auto; }
    .trust-bar { justify-content: center; flex-wrap: wrap; gap: 16px; }
    .stats-bar { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
  }
  @media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
  }

/* --- contact --- */
.legal-wrapper { max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vh, 40px) 16px; }
  .legal-header { margin-bottom: 32px; }
  .legal-header h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
  .legal-content { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--border-light); }
  .legal-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
  .contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 12px; }
  .contact-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .contact-icon svg { color: var(--primary); }
  .contact-info { font-size: 15px; }
  .contact-info strong { display: block; color: var(--text); margin-bottom: 2px; }
  .contact-info a { color: var(--primary); font-weight: 500; }
  .contact-form { margin-top: 28px; }
  .contact-form .form-group { margin-bottom: 16px; }
  .contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
  .contact-form input, .contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 15px; font-family: inherit; background: var(--bg); color: var(--text); }
  .contact-form textarea { min-height: 120px; resize: vertical; }
  .contact-form .btn-submit { background: var(--primary); color: #fff; border: none; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 15px; cursor: pointer; }
  .contact-form .btn-submit:hover { opacity: .9; }
  .alert-success { background: #dcfce7; color: #166534; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
  .alert-error { background: #fee2e2; color: #991b1b; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }

/* --- scan --- */
.scan-wrapper { max-width: 520px; margin: clamp(24px, 5vh, 60px) auto; padding: 0 16px; }
  .scan-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-xl);
    text-align: center;
  }
  .scan-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(37,99,235,.25);
  }
  .scan-avatar svg { width: 28px; height: 28px; }
  .scan-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
  .scan-city { color: var(--text-secondary); font-size: 15px; margin-bottom: 16px; }
  .scan-message {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 16px 0;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--primary);
  }
  .scan-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
  .scan-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    font-size: 15px; font-weight: 600;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition);
  }
  .scan-btn:hover { transform: translateY(-1px); color: #fff; }
  .scan-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .scan-btn-phone { background: #16a34a; box-shadow: 0 4px 12px rgba(22,163,74,.25); }
  .scan-btn-phone:hover { background: #15803d; }
  .scan-btn-whatsapp { background: #25d366; box-shadow: 0 4px 12px rgba(37,211,102,.25); }
  .scan-btn-whatsapp:hover { background: #1fba59; }
  .scan-btn-telegram { background: #229ED9; box-shadow: 0 4px 12px rgba(34,158,217,.25); }
  .scan-btn-telegram:hover { background: #1a8cc4; }
  .scan-btn-email { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); box-shadow: none; }
  .scan-btn-email:hover { background: var(--bg); color: var(--text); border-color: var(--primary); }
  .scan-btn-instagram { background: #E1306C; box-shadow: 0 4px 12px rgba(225,48,108,.25); }
  .scan-btn-instagram:hover { background: #c9275f; }
  .scan-btn-facebook { background: #1877F2; box-shadow: 0 4px 12px rgba(24,119,242,.25); }
  .scan-btn-facebook:hover { background: #1565d8; }
  .scan-btn-custom { background: var(--text); box-shadow: 0 4px 12px rgba(15,23,42,.15); }
  .scan-btn-custom:hover { background: var(--text-secondary); }
  .scan-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light); }

/* --- terms --- */
.legal-wrapper { max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vh, 40px) 16px; }
  .legal-header { margin-bottom: 32px; }
  .legal-header h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
  .legal-header .legal-date { font-size: 13px; color: var(--text-muted); }
  .legal-content { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--border-light); }
  .legal-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
  .legal-content ul { padding-left: 24px; margin-bottom: 14px; }
  .legal-content li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }

/* --- privacy --- */
.legal-wrapper { max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vh, 40px) 16px; }
  .legal-header { margin-bottom: 32px; }
  .legal-header h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
  .legal-header .legal-date { font-size: 13px; color: var(--text-muted); }
  .legal-content { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--border-light); }
  .legal-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
  .legal-content ul { padding-left: 24px; margin-bottom: 14px; }
  .legal-content li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }

/* --- cookie_policy --- */
.legal-wrapper { max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vh, 40px) 16px; }
  .legal-header { margin-bottom: 32px; }
  .legal-header h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
  .legal-header .legal-date { font-size: 13px; color: var(--text-muted); }
  .legal-content { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--border-light); }
  .legal-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
  .legal-content ul { padding-left: 24px; margin-bottom: 14px; }
  .legal-content li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
  .cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
  .cookie-table th, .cookie-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); }
  .cookie-table th { font-weight: 600; color: var(--text); background: var(--bg-alt); }
  .cookie-table td { color: var(--text-secondary); }

/* --- error_page --- */
.error-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 40px 20px;
  }
  .error-code {
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
  }
  .error-message {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 32px;
  }

