:root {
  --bg: #0a0e0f;
  --bg-alt: #0f1517;
  --surface: #141b1d;
  --surface-2: #1a2325;
  --border: #24302f;
  --text: #e9f0ef;
  --muted: #8ba0a0;
  --accent: #10b981;
  --accent-soft: #34d399;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --radius: 14px;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text, .stat-num, .spec-val, .price {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.accent { color: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-family: 'Space Grotesk', sans-serif;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 24px; cursor: pointer; font-size: 15px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04120c; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim); color: var(--accent-soft); }
.brand-text { font-size: 19px; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent-soft); }

.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-desktop a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 22px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin-top: 14px; }

/* Hero */
.hero { padding: 120px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-dim), transparent 65%); z-index: 0; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft); background: var(--accent-dim); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  font-weight: 600;
}
.hero-copy h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
.hero-copy .lead { color: var(--muted); font-size: 1.1rem; margin: 22px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 18px; }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 20px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--accent-soft); }
.stat-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag { color: var(--accent-soft); font-family: 'Space Grotesk'; font-size: .9rem; letter-spacing: .05em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; max-width: 640px; }
.section-sub { color: var(--muted); margin: 16px 0 44px; max-width: 560px; font-size: 1.05rem; }

/* Grid cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-dim); color: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Built different */
.built-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.built-visual img { border-radius: 18px; border: 1px solid var(--border); }
.feature-list { list-style: none; display: grid; gap: 22px; margin-top: 8px; }
.feature-list li { padding-left: 20px; border-left: 2px solid var(--accent); }
.feature-list strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* Specs */
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.spec-val { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent-soft); margin-bottom: 6px; }
.spec-key { color: var(--muted); font-size: .85rem; }

/* App */
.app-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.app-visual img { border-radius: 18px; border: 1px solid var(--border); }
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Team */
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-soft); font-weight: 700; font-size: 1.3rem; font-family: 'Space Grotesk'; margin-bottom: 16px; }
.member h3 { font-size: 1.1rem; }
.member .role { color: var(--accent-soft); font-size: .85rem; margin: 4px 0 12px; }
.member .bio { color: var(--muted); font-size: .9rem; }

/* Order */
.section-order { background: var(--bg-alt); }
.order-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.order-inner .section-title, .order-inner .section-sub { max-width: none; }
.order-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; max-width: 560px; width: 100%; text-align: center; margin-top: 12px;
}
.price-row { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; }
.price { font-size: 2.6rem; font-weight: 700; color: var(--accent-soft); }
.price-cur { font-size: 1rem; color: var(--muted); }
.price-note { color: var(--muted); font-size: .9rem; }
.order-desc { color: var(--muted); margin-bottom: 26px; }
.order-contact { margin-top: 20px; color: var(--muted); font-size: .9rem; }
.order-contact a { color: var(--accent-soft); }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; }
.footer-tagline { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .link-btn { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-col a:hover, .link-btn:hover { color: var(--accent-soft); }
.footer-col address { color: var(--muted); font-style: normal; font-size: .9rem; line-height: 1.8; }
.footer-col address a { color: var(--accent-soft); }
.link-btn { background: none; border: none; cursor: pointer; padding: 0; text-align: left; font-family: inherit; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { color: var(--muted); font-size: .82rem; }
.disclaimer { opacity: .8; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  padding: 36px; animation: pop .2s ease;
}
.modal-doc { max-width: 720px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.6rem; margin-bottom: 10px; }
.modal-intro { color: var(--muted); margin-bottom: 24px; }

/* Doc content */
.modal-doc h2 { font-size: 1.7rem; margin-bottom: 6px; }
.modal-doc .updated { color: var(--accent-soft); font-size: .85rem; margin-bottom: 20px; }
.modal-doc h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.modal-doc p, .modal-doc li { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.modal-doc ul { padding-left: 20px; margin-bottom: 10px; }

/* Form */
.modal-form form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.modal-form input, .modal-form select, .modal-form textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-family: inherit; font-size: .95rem; width: 100%;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: var(--accent); }
.modal-form textarea { resize: vertical; }
.form-hint { color: var(--muted); font-size: .8rem; text-align: center; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .success-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-soft); display: grid; place-items: center; font-size: 28px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 150; max-width: 720px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: .88rem; color: var(--muted); }
.cookie-banner .link-btn { color: var(--accent-soft); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .built-grid, .app-grid { grid-template-columns: 1fr; }
  .built-visual { order: 2; }
  .grid-4, .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 100px; }
}
@media (max-width: 560px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .grid-4, .specs-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-box { padding: 28px 20px; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
  .section { padding: 64px 0; }
}
