/* Demo request page (demo.html, tr/demo.html). Same tokens as the home page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --indigo: #4F46E5; --indigo-dark: #4338CA; --purple: #7C3AED;
  --indigo-light: #818CF8; --violet-light: #A78BFA; --navy: #1E1B4B;
  --gray-50: #F8FAFC; --gray-100: #F1F5F9; --gray-200: #E2E8F0; --gray-400: #94A3B8;
  --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155; --gray-800: #1E293B; --gray-900: #0F172A;
  --danger: #DC2626;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--gray-800); background: var(--gray-50); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--indigo); }

/* nav */
nav { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0 5%; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { height: 30px; display: block; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--gray-600); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--indigo); }
.lang-toggle { display: flex; background: var(--gray-100); border-radius: 8px; padding: 3px; gap: 2px; }
.lang-btn { padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); text-decoration: none; }
.lang-btn.active { background: #fff; color: var(--indigo); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* layout */
.demo { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 5% 72px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }

/* intro panel */
.demo-intro { background: linear-gradient(160deg, var(--gray-900) 0%, var(--navy) 55%, #2E1065 100%); color: #fff; border-radius: 24px; padding: 48px 44px; position: relative; overflow: hidden; }
.demo-intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79,70,229,0.35) 0%, transparent 70%); pointer-events: none; }
.demo-intro > * { position: relative; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--indigo-light); margin-bottom: 14px; }
.demo-intro h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 18px; text-wrap: balance; }
.demo-intro h1 span { background: linear-gradient(135deg, var(--indigo-light), var(--violet-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: rgba(255,255,255,0.72); font-size: 1.02rem; margin-bottom: 28px; }
.perks { list-style: none; display: grid; gap: 16px; margin-bottom: 32px; }
.perks li { position: relative; padding-left: 36px; color: rgba(255,255,255,0.68); font-size: 0.93rem; }
.perks li strong { color: #fff; font-weight: 600; display: block; }
.perks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: rgba(129,140,248,0.2); color: var(--violet-light); font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.reply { font-size: 0.88rem; color: rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.reply a { color: var(--indigo-light); }

/* form card */
.demo-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 24px; padding: 40px; box-shadow: 0 12px 40px rgba(15,23,42,0.06); }
.demo-card h2 { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; margin-bottom: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--gray-400); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font: inherit; font-size: 0.95rem; color: var(--gray-800); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--gray-600); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--indigo); flex: 0 0 auto; }
.btn-primary { width: 100%; padding: 14px 24px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--purple)); box-shadow: 0 4px 14px rgba(79,70,229,0.35); transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.45); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .lang-btn:focus-visible { outline: 3px solid var(--indigo-light); outline-offset: 2px; }
.demo-status { font-size: 0.88rem; margin-top: 12px; }
.demo-status:empty { display: none; }
.demo-status.error { color: var(--danger); }
.fine { font-size: 0.78rem; color: var(--gray-500); margin-top: 16px; }

/* success */
.demo-success { text-align: center; padding: 32px 8px; outline: none; }
.demo-success .tick { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.demo-success p { color: var(--gray-600); margin-bottom: 28px; }
.btn-outline { display: inline-block; padding: 11px 24px; border-radius: 10px; border: 1.5px solid var(--indigo); color: var(--indigo); font-weight: 600; text-decoration: none; }
.btn-outline:hover { background: var(--indigo); color: #fff; }

footer { text-align: center; padding: 28px 5%; font-size: 0.82rem; color: var(--gray-400); border-top: 1px solid var(--gray-200); background: #fff; }
footer a { color: var(--gray-500); text-decoration: none; }
footer a:hover { color: var(--indigo); }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 48px; }
  .demo-intro { padding: 32px 24px; border-radius: 20px; }
  .demo-card { padding: 28px 20px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .nav-link { display: none; }
  nav { padding: 0 16px; }
}
