/* ---------- Tokens ---------- */
:root{
  --bg: #0B0B0F;
  --bg-raised: #131318;
  --bg-card: #16161C;
  --ink: #F3F2F0;
  --ink-soft: #A6A5AE;
  --ink-faint: #6F6E79;
  --line: #232229;
  --line-soft: #1B1A20;
  --brand: #FF5A32;
  --brand-2: #FFB020;
  --brand-soft: rgba(255,90,50,0.14);
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1240px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #FAFAF8;
    --bg-raised: #FFFFFF;
    --bg-card: #FFFFFF;
    --ink: #16151A;
    --ink-soft: #55535F;
    --ink-faint: #8B8A93;
    --line: #E6E4E9;
    --line-soft: #EFEDF1;
    --brand: #E8471F;
    --brand-2: #E09400;
    --brand-soft: rgba(232,71,31,0.08);
    --white: #FFFFFF;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ margin: 0; letter-spacing: -0.02em; }
p{ margin: 0; }
ol,ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus{ left: 0; }

/* ---------- Background FX ---------- */
.bg-fx{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-a{
  width: 560px; height: 560px;
  background: var(--brand);
  top: -220px; left: -120px;
}
.glow-b{
  width: 620px; height: 620px;
  background: var(--brand-2);
  top: 320px; right: -260px;
  opacity: 0.18;
}
@media (prefers-color-scheme: light){
  .glow{ opacity: 0.16; }
  .glow-b{ opacity: 0.10; }
}
.grid-overlay{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 55%);
  opacity: 0.5;
}

.divider{ border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.site-header.scrolled{
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.logo{ display: flex; align-items: center; gap: 11px; }
.logo-icon{ width: 45px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(255,90,50,0.25)); }
.logo-text{ display: flex; flex-direction: column; line-height: 1.15; }
.logo-word{ font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.logo-sub{ font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

.main-nav{ display: flex; gap: 30px; margin-left: auto; margin-right: 8px; }
.main-nav a{
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--ink); }

.btn-nav{ padding: 10px 18px; font-size: 13px; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
}
.nav-toggle span{ display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-size: 14px; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255,90,50,0.55);
}
.btn-primary:hover{ box-shadow: 0 10px 30px -6px rgba(255,90,50,0.7); transform: translateY(-1px); }
.btn-ghost{
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink-faint); }
.btn-submit{ width: 100%; padding: 15px 24px; border-radius: 10px; position: relative; }
.btn-submit[disabled]{ opacity: .7; cursor: not-allowed; }
.btn-spinner{
  display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .btn-spinner{ display: inline-block; }
.btn-submit.loading .btn-label{ opacity: .85; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- Eyebrow / section head ---------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }

/* ---------- Hero ---------- */
.hero{ padding: 108px 0 88px; }
.hero-inner{ max-width: 880px; }
.hero h1{
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.06;
}
.text-gradient{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede{ margin-top: 24px; max-width: 60ch; font-size: 17px; color: var(--ink-soft); }
.hero-actions{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  gap: 32px;
  margin: 64px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats dt{ font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-stats dd{ margin: 4px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- Services (bento) ---------- */
.services{ padding: 40px 0 96px; }
.bento-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.card{
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  grid-column: span 1;
}
.card-lg{ grid-column: span 2; }
.card:hover{
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 16px 40px -20px rgba(255,90,50,0.35);
  transform: translateY(-3px);
}
.card-accent{ border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-top{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-icon{
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.card-icon svg{ width: 21px; height: 21px; }
.card-tag{
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.card h3{ font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.card-desc{ font-size: 14px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.card-footer{
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.card-meta-label{ font-size: 13px; color: var(--ink); font-weight: 500; }
.card-link{
  font-size: 13px; font-weight: 700; color: var(--brand);
  display: inline-flex; gap: 4px; align-items: center; transition: gap .15s ease;
}
.card-link:hover{ gap: 8px; }

/* ---------- Process ---------- */
.process{ padding: 40px 0 96px; }
.process-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-list li{
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.process-num{
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  display: block; margin-bottom: 16px;
}
.process-list h3{ font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-list p{ font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact{ padding: 40px 0 110px; }
.contact-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form{
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.5);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field{ display: flex; flex-direction: column; gap: 7px; }
.form-field label{ font-size: 13px; font-weight: 600; color: var(--ink); }
.req{ color: var(--brand); }
.form-field input,
.form-field select,
.form-field textarea{
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-field textarea{ resize: vertical; min-height: 100px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-field select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23A6A5AE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.form-status{ display: none; font-size: 13px; font-weight: 600; padding: 12px 14px; border-radius: 8px; }
.form-status.visible{ display: block; }
.form-status.success{ background: rgba(30,158,90,0.14); color: #35C57D; }
.form-status.error{ background: var(--brand-soft); color: var(--brand); }

.contact-info{ display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }

.info-card{
  display: flex;
  align-items: center;
  gap: 16px;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.info-card:hover{
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 14px 34px -22px rgba(255,90,50,0.5);
  transform: translateY(-2px);
}
.info-icon{
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.info-icon svg{ width: 20px; height: 20px; }
.info-body{
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.info-label{
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-faint); margin-bottom: 3px;
}
.info-value{ font-size: 15px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.info-card:hover .info-value{ color: var(--brand); }
.info-sub{ font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.info-arrow{
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}
.info-card:hover .info-arrow{ opacity: 1; transform: translateX(0); color: var(--brand); }

.info-note{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.info-note-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #35C57D;
  box-shadow: 0 0 0 3px rgba(53,197,125,0.2);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-mid{ font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.footer-copy{ font-size: 13px; color: var(--ink-faint); }

/* ---------- Reveal animation ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .bento-grid{ grid-template-columns: 1fr 1fr; }
  .card-lg{ grid-column: span 2; }
  .process-list{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .wrap{ padding: 0 20px; }
  .main-nav{
    position: fixed; top: 78px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px; gap: 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .main-nav.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{ display: flex; }
  .btn-nav{ display: none; }
  .bento-grid{ grid-template-columns: 1fr; }
  .card-lg{ grid-column: span 1; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .hero{ padding: 64px 0 56px; }
  .hero-stats{ grid-template-columns: 1fr 1fr; }
  .footer-inner{ justify-content: center; text-align: center; }
}
