/* ===== Design tokens ===== */
:root {
  --bg: #0c0809;
  --bg-2: #140d0f;
  --surface: #1a1113;
  --surface-2: #221618;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5eeef;
  --muted: #bda6aa;
  --muted-2: #8a7175;
  --brand: #ef3b3b;
  --brand-2: #b31217;
  --accent: #ff7a45;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px -15px rgba(239, 59, 59, 0.45);
  --container: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem; padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 70px -10px rgba(179, 18, 23, 0.65); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow.light { color: rgba(255,255,255,.85); }

.gradient-text {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 8, 9, 0.85); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; letter-spacing: -.02em; }
.logo-suffix { font-weight: 700; }
.logo-mark { display: grid; place-items: center; }
.logo-accent { color: var(--brand); }
.logo-accent { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong);
  padding: 9px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: rgba(255,255,255,.12); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 162px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--brand), transparent 70%); top: -120px; left: -80px; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, var(--brand-2), transparent 70%); bottom: -160px; right: -100px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--muted-2); max-width: 460px; }

.hero-logos {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 20px 0 4px;
}
.cloud-logo { height: 30px; width: auto; color: var(--text); opacity: .92; transition: opacity .2s, transform .2s; }
.cloud-logo:hover { opacity: 1; transform: translateY(-1px); }
.logo-divider { width: 1px; height: 26px; background: var(--border-strong); }
@media (max-width: 680px) {
  .hero-logos { gap: 16px; }
  .logo-divider { display: none; }
  .cloud-logo { height: 26px; }
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-display); font-size: 1.05rem; }
.trust-item span { font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }

/* Hero visual */
.hero-visual { position: relative; height: 420px; }
.hero-ring {
  position: absolute; inset: 10% 15%; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 40%, rgba(239,59,59,.16), transparent 60%);
  box-shadow: inset 0 0 80px rgba(179,18,23,.18);
  animation: spin 40s linear infinite;
}
.hero-ring::before {
  content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed var(--border-strong);
}
@keyframes spin { to { transform: rotate(360deg); } }

.glass-card {
  background: linear-gradient(145deg, rgba(46,28,31,.88), rgba(26,17,19,.75));
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.card-icon { font-size: 1.4rem; }
.card-1 { top: 6%; left: 0; animation-delay: 0s; }
.card-2 { top: 42%; right: -6%; animation-delay: 1.5s; }
.card-3 { bottom: 4%; left: 8%; animation-delay: 3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 24px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.stat-plus { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===== Services ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(239,59,59,.12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: rgba(239,59,59,.45); background: linear-gradient(180deg, rgba(239,59,59,.09), var(--surface)); }
.service-badge {
  position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: #ff7a6b; background: rgba(239,59,59,.14);
  border: 1px solid rgba(239,59,59,.35); padding: 5px 11px; border-radius: 999px;
}
.service-icon { font-size: 2rem; margin-bottom: 18px; display: inline-block; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tick-list li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--text); }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 700; width: 18px; height: 18px;
}

/* ===== AI section ===== */
.ai-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.ai-feature { display: flex; gap: 14px; }
.ai-feature-icon {
  flex: 0 0 auto; font-size: 1.3rem; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.ai-feature h4 { font-size: 1.05rem; margin-bottom: 4px; }
.ai-feature p { color: var(--muted); font-size: .9rem; }

.ai-tools { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.ai-tools-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  padding: 9px 16px; border-radius: 999px;
  transition: border-color .2s, transform .2s, color .2s;
}
.tool-chip:hover { border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.tool-chip svg { flex: 0 0 auto; opacity: .95; }

.ai-visual { display: flex; justify-content: center; }
.glass-panel {
  width: 100%; max-width: 440px; background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.15); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.amber { background: #febc2e; } .dot.green { background: #28c840; }
.panel-title { margin-left: auto; font-size: .82rem; color: var(--muted-2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.code { padding: 22px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.7; overflow-x: auto; }
.code code { color: #cdd6f4; }
.c-key { color: #8ab4ff; } .c-str { color: #a6e3a1; } .c-num { color: #fab387; } .c-cmt { color: var(--muted-2); } .c-ok { color: var(--accent); font-weight: 600; }

/* ===== Approach ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, border-color .25s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.about-content p { color: var(--muted); margin-bottom: 18px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.about-point { display: flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 500; }
.about-point span { color: var(--accent); font-weight: 800; }
.tech-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tech-strip span {
  font-size: .8rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}

.about-visual { display: grid; gap: 18px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s, border-color .25s;
}
.value-card:hover { transform: translateX(6px); border-color: var(--border-strong); }
.value-icon { font-size: 1.6rem; display: inline-block; margin-bottom: 10px; }
.value-card h4 { font-size: 1.15rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: .92rem; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0 100px; }
.cta-card {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px;
  background: linear-gradient(135deg, rgba(239,59,59,.18), rgba(179,18,23,.14));
  border: 1px solid var(--border-strong); border-radius: 26px; padding: 52px; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,69,.28), transparent 70%);
  top: -140px; right: -80px; filter: blur(30px);
}
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-copy p { color: var(--muted); margin-bottom: 24px; }
.cta-contacts { display: flex; flex-direction: column; gap: 10px; }
.cta-contact { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.cta-contact:hover { color: var(--accent); }

.cta-form { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: .95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(239,59,59,.2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-note { font-size: .86rem; text-align: center; min-height: 18px; }
.form-note.success { color: var(--accent); }
.form-note.error { color: #ff7a7a; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 320px; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { color: var(--muted-2); font-size: .86rem; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-inner, .ai-inner, .about-inner, .cta-card { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .logo { font-size: 1.15rem; gap: 9px; }
  .logo-suffix { display: none; }
  .nav { position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; background: rgba(12,8,9,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 12px 24px 22px; transform: translateY(-140%); transition: transform .35s ease; align-items: stretch; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .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); }
  .cards-grid, .steps, .ai-features, .about-points { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .cta-card { padding: 32px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}
