/* ============================================================
   Phantom Technologies — style.css
   Theme: primary #40001a (deep burgundy) · secondary #ff8a1a (orange)
   Warm sunset accent scale derived from the two brand colors.
   ============================================================ */

:root {
  /* Brand */
  --primary: #40001a;
  --secondary: #ff8a1a;

  --bg: var(--primary);
  --bg-soft: #4f0a26;
  --surface: rgba(255, 170, 112, 0.06);
  --surface-strong: rgba(255, 170, 112, 0.1);
  --border: rgba(255, 170, 112, 0.16);
  --border-strong: rgba(255, 138, 26, 0.45);

  --text: #fdf3ec;
  --muted: #d4a99e;

  /* Accent scale */
  --orange: var(--secondary);
  --gold: #ffc168;
  --coral: #ff6f52;
  --peach: #ffaa70;
  --rose: #ff5e7e;
  --pink: #ff4f9e;
  --green: #34d399; /* status/success only */

  --grad: linear-gradient(100deg, #ffc168 0%, #ff8a1a 50%, #ff5e2e 100%);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --container: 1140px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

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

::selection { background: rgba(255, 138, 26, 0.4); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }

/* ---------- Decorative background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 170, 112, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 170, 112, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.orb {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(255, 110, 30, 0.45), transparent 70%); }
.orb-2 { width: 420px; height: 420px; top: 30vh; right: -160px; background: radial-gradient(circle, rgba(255, 193, 104, 0.28), transparent 70%); animation-delay: -8s; }
.orb-3 { width: 380px; height: 380px; bottom: -120px; left: 30vw; background: radial-gradient(circle, rgba(255, 79, 126, 0.28), transparent 70%); animation-delay: -15s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 7px 16px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad); color: var(--primary);
  box-shadow: 0 8px 30px -8px rgba(255, 110, 30, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 193, 104, 0.45); }

.btn-ghost { border-color: var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-strong); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(50, 0, 20, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(255, 138, 26, 0.45)); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 5px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-cta { margin-left: 6px; }

.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: transform 0.25s ease, opacity 0.25s ease; }
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--nav-h) + 70px) 0 0; min-height: 92vh; display: flex; flex-direction: column; justify-content: space-between; }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-bottom: 70px;
}

.hero-copy h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; margin: 26px 0 22px; }

.swap-wrap { display: inline-block; position: relative; }
.swap-word {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  border-bottom: 3px solid rgba(255, 138, 26, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.swap-word.swapping { opacity: 0; transform: translateY(12px); }

.lead { color: var(--muted); font-size: 18.5px; max-width: 54ch; }
.lead strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: flex; gap: 44px; margin-top: 46px; flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--font-head); font-size: 32px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-stats dd { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Hero visual */
.hero-visual { position: relative; }

.terminal {
  background: rgba(48, 2, 20, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(255, 110, 30, 0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255, 170, 112, 0.04);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.terminal-bar i:nth-child(1) { background: #fb7185; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #34d399; }
.terminal-bar span { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-family: var(--font-head); }

.terminal-body {
  padding: 22px 22px 26px; font-size: 14px; line-height: 2.05;
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  color: var(--text); white-space: pre-wrap;
}
.t-dim { color: var(--muted); }
.t-gold { color: var(--gold); }
.t-orange { color: var(--orange); }
.t-green { color: var(--green); }

.caret {
  display: inline-block; width: 9px; height: 17px; margin-left: 6px;
  background: var(--gold); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  padding: 11px 17px; border-radius: 99px;
  background: rgba(50, 3, 22, 0.92); border: 1px solid var(--border);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.chip-a { top: -22px; right: 8%; }
.chip-b { bottom: 14%; left: -34px; }
.chip-c { bottom: -20px; right: 14%; }

.float-slow { animation: floaty 7s ease-in-out infinite; }
.float-mid  { animation: floaty 5.5s ease-in-out infinite; animation-delay: -2s; }
.float-fast { animation: floaty 4.5s ease-in-out infinite; animation-delay: -1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--border);
  background: rgba(255, 170, 112, 0.03);
  overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  animation: scroll-x 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  color: var(--muted); letter-spacing: 0.04em; white-space: nowrap;
}
.marquee-track i { color: var(--orange); font-style: normal; font-size: 11px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 110, 30, 0.06) 30%, rgba(255, 193, 104, 0.05) 70%, transparent);
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 22px 0 16px; }
.section-sub { color: var(--muted); font-size: 17.5px; }

h2 { font-size: clamp(30px, 3.8vw, 44px); }

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 26, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px -22px rgba(255, 110, 30, 0.35);
}
.card:hover::before { opacity: 1; }

.card h3 { font-size: 20px; margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p b { color: var(--text); font-weight: 600; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.card-icon svg { width: 26px; height: 26px; }
.icon-orange { color: var(--orange); background: rgba(255, 138, 26, 0.12); }
.icon-gold   { color: var(--gold);   background: rgba(255, 193, 104, 0.12); }
.icon-coral  { color: var(--coral);  background: rgba(255, 111, 82, 0.12); }
.icon-peach  { color: var(--peach);  background: rgba(255, 170, 112, 0.12); }
.icon-rose   { color: var(--rose);   background: rgba(255, 94, 126, 0.12); }
.icon-pink   { color: var(--pink);   background: rgba(255, 79, 158, 0.12); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.about-copy h2 { margin: 22px 0 18px; }
.about-copy > p { color: var(--muted); }

.about-points { list-style: none; margin-top: 36px; display: grid; gap: 24px; }
.about-points li { display: flex; gap: 17px; align-items: flex-start; }
.point-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(255, 193, 104, 0.1); border: 1px solid var(--border);
}
.point-icon svg { width: 22px; height: 22px; }
.about-points h4 { font-size: 17px; margin-bottom: 4px; }
.about-points p { color: var(--muted); font-size: 15px; }

.motto-card {
  display: grid; gap: 14px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.motto-line {
  display: grid; gap: 4px;
  padding: 20px 22px;
  background: rgba(255, 170, 112, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.motto-line:hover { transform: translateX(6px); border-color: var(--border-strong); }
.motto-line b {
  font-family: var(--font-head); font-size: 21px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.motto-line small { color: var(--muted); font-size: 14px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  list-style: none; counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--orange);
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 138, 26, 0.1); border: 1px solid var(--border);
}
.process-step h3 { font-size: 18.5px; margin: 18px 0 8px; }
.process-step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 60px 0; }
.cta-inner {
  text-align: center;
  padding: 70px 40px;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px circle at 20% 0%, rgba(255, 110, 30, 0.25), transparent 60%),
    radial-gradient(600px circle at 80% 100%, rgba(255, 193, 104, 0.18), transparent 60%),
    var(--bg-soft);
  box-shadow: 0 40px 100px -40px rgba(255, 110, 30, 0.45);
}
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-inner p { color: var(--muted); margin: 14px 0 30px; font-size: 17.5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-copy h2 { margin: 22px 0 18px; }
.contact-copy > p { color: var(--muted); max-width: 46ch; }

.contact-meta { margin-top: 30px; display: grid; gap: 12px; }
.contact-meta-item {
  display: inline-flex; align-items: center; gap: 11px; width: fit-content;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15.5px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-meta-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-meta-item svg { color: var(--gold); }

.contact-form {
  display: grid; gap: 20px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  backdrop-filter: blur(8px);
}
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  background: rgba(43, 0, 17, 0.55);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; outline: none; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(212, 169, 158, 0.5); }
.field input:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 26, 0.2);
}
.field input.invalid, .field textarea.invalid { border-color: var(--rose); }

.form-status { font-size: 14.5px; min-height: 1.4em; color: var(--muted); text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--rose); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; background: rgba(50, 0, 20, 0.6); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.brand-footer .brand-name { font-size: 16px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13.5px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .chip-b { left: -10px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(50, 0, 20, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 4vw 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 16px 6px 0; justify-content: center; }

  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-stats { gap: 28px; }
  .cards-grid, .process-grid { grid-template-columns: 1fr; }
  .chip-a { right: 0; }
  .chip-c { right: 4%; }
  .contact-form { padding: 26px 20px; }
  .cta-inner { padding: 54px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
