@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #1b1008;
  --bg-1: #241408;
  --bg-2: #2f1c0e;
  --surface: #3a2416;
  --surface-2: #472f1b;
  --wood: #7a4b25;
  --line: rgba(255, 176, 32, 0.14);
  --accent: #ffb020;
  --accent-2: #ff6a3d;
  --grad: linear-gradient(135deg, #ffb020 0%, #ff6a3d 100%);
  --text: #f3e7d8;
  --text-dim: #c1a888;
  --white: #ffffff;
  --tile-red: #e6396a;
  --tile-blue: #3fb0ff;
  --tile-green: #5ed86a;
  --tile-purple: #9b6bff;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, .h {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

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

.section { position: relative; padding: 104px 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4.4vw, 50px); }
.section-title .hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--text-dim); font-size: 17px; margin-top: 18px; }
.lead + .lead { margin-top: 14px; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
#preloader img { width: 64px; height: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad);
  color: #2a1400;
  box-shadow: 0 10px 30px -8px rgba(255, 106, 61, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px -8px rgba(255, 106, 61, 0.7); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--white); transform: translateY(-2px); }

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.btn-levitate { animation: levitate 3s ease-in-out infinite; }
.btn-levitate:hover { animation-play-state: paused; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.header.scrolled {
  height: 66px;
  background: rgba(24, 14, 6, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, 0.9);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 42px; height: 42px; border-radius: 10px; }
.logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1; }
.logo-text b { display: block; font-size: 19px; color: var(--white); letter-spacing: 0.02em; }
.logo-text span { display: block; font-size: 11px; letter-spacing: 0.24em; color: var(--accent); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-dim);
  position: relative; transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 20px; font-size: 15px; }

.burger-btn {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px; position: relative; cursor: pointer;
}
.burger-btn span {
  position: absolute; left: 9px; right: 9px; height: 2.5px; border-radius: 2px;
  background: var(--white); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 27px; }
.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20, 12, 5, 0.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 26px; color: var(--text); padding: 10px 0; }
#mobile-menu .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg-1) center/cover no-repeat;
  background-image: url('../img/hero-bg.webp');
}

.section-head { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 5, 0.92) 0%, rgba(20, 12, 5, 0.72) 45%, rgba(20, 12, 5, 0.35) 100%),
              radial-gradient(120% 80% at 15% 40%, transparent 40%, rgba(20, 12, 5, 0.7) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-content { max-width: 620px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); margin-bottom: 22px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-dim); font-size: 18px; margin-bottom: 16px; }
.hero-sub.accent { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text);
}
.hero-pills li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame {
  position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}
.split-media .frame img { width: 100%; }
.split-media.phone { display: flex; justify-content: center; }
.split-media.phone .frame { max-width: 300px; border-radius: 26px; border: 6px solid #150c05; }
.split-media .glow {
  position: absolute; inset: -14% -8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.32), transparent 70%);
  filter: blur(8px);
}
.split-text p { color: var(--text-dim); font-size: 17px; }
.split-text p + p { margin-top: 16px; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px;
}
.feature-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255, 176, 32, 0.4); box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.85); }
.feature-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 176, 32, 0.12); border: 1px solid var(--line);
  margin-bottom: 20px;
}
.feature-ico svg { width: 28px; height: 28px; stroke: var(--accent); }
.feature-card h3 { font-size: 22px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }

/* ---------- Screenshot strip ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.shots figure {
  border-radius: 20px; overflow: hidden; border: 5px solid #150c05;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease);
}
.shots figure:hover { transform: translateY(-8px) scale(1.02); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 780px; margin: 46px auto 0; text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 48px 40px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(255, 176, 32, 0.16), transparent 70%);
}
.contact-card p { position: relative; color: var(--text-dim); font-size: 17px; }
.contact-card p + p { margin-top: 14px; }
.contact-email {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: clamp(18px, 3.4vw, 32px);
  color: var(--white); margin: 24px 0; padding: 12px 26px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-email:hover { border-color: var(--accent); }
.contact-email svg { width: 26px; height: 26px; stroke: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  position: relative; padding: 66px 0 30px;
  background: var(--bg) center/cover no-repeat;
  background-image: url('../img/footer-bg.webp');
  border-top: 1px solid var(--line);
}
.footer::before { content: ''; position: absolute; inset: 0; background: rgba(15, 9, 4, 0.82); }
.footer .container { position: relative; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 420px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 15.5px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { font-size: 16px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 4px; }
.footer-links a { color: var(--text-dim); font-size: 15px; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line);
  text-align: center; color: var(--text-dim); font-size: 14px;
}

/* ---------- Legal ---------- */
.legal-page { padding: calc(var(--header-h) + 70px) 0 90px; background: var(--bg-1); }
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 26px; }
.legal-content h2 { font-size: 26px; margin: 38px 0 14px; color: var(--white); }
.legal-content h3 { font-size: 20px; margin: 30px 0 12px; color: var(--accent); text-transform: none; font-weight: 600; }
.legal-content p { color: var(--text-dim); margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; color: var(--text-dim); }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .burger-btn { display: block; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin: 0 auto; order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 82px 0; }
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .split-media.phone .frame { max-width: 260px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-cta .btn { padding: 9px 15px; font-size: 13px; }
  .logo-text b { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero h1 { font-size: 40px; }
  .contact-card { padding: 34px 22px; }
  .section { padding: 66px 0; }
  .footer-top { flex-direction: column; }
}
