/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0f1c26;
  --navy-2: #142735;
  --navy-3: #1b3242;
  --orange: #f47c20;
  --orange-2: #ff9a45;
  --teal: #14828f;
  --teal-2: #1ea8b8;
  --ink: #eef4f7;
  --ink-dim: #a9bccb;
  --border: rgba(238, 244, 247, 0.1);
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --ff-display: 'Archivo Black', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

body {
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

::selection { background: var(--orange); color: var(--navy); }

/* Custom reticle cursor accent (desktop only, decorative) */
.reticle {
  position: fixed;
  width: 26px; height: 26px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .12s ease, border-color .2s ease;
  opacity: 0;
  mix-blend-mode: difference;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.reticle::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
.reticle::after { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
.reticle.active { opacity: 1; }
.reticle.hover { transform: translate(-50%, -50%) scale(1.6); border-color: var(--teal-2); }
@media (hover: none), (pointer: coarse) { .reticle { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(244, 124, 32, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 124, 32, 0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal-2); color: var(--teal-2); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-nav { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(15, 28, 38, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-family: var(--ff-display); font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1; }
.logo-text b { color: var(--ink); font-style: normal; }
.logo-text i { color: var(--orange); font-style: normal; }
.logo-text.small { font-size: 0.95rem; }

.main-nav { display: flex; gap: 28px; margin-left: 12px; }
.nav-link { font-weight: 600; font-size: 0.92rem; color: var(--ink-dim); transition: color .2s ease; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(280px, 80vw);
  background: var(--navy-2);
  border-left: 1px solid var(--border);
  z-index: 99;
  padding: 100px 28px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-weight: 700; font-size: 1.1rem; }

@media (max-width: 860px) {
  .main-nav, .btn-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #1a3446 0%, var(--navy) 60%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,38,0.1) 0%, rgba(15,28,38,0.55) 75%, var(--navy) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; }

.eyebrow {
  display: inline-block;
  color: var(--teal-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}
.hero-title em { font-style: normal; color: var(--orange); }

.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-bottom: 34px;
}

.hero-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(20, 130, 143, 0.12);
  border: 1px solid rgba(30, 168, 184, 0.4);
  color: var(--ink);
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
  max-width: 100%;
}
.hero-badge strong { color: var(--orange-2); }
.hero-badge-text { padding-top: 1px; }
.hero-badge-dot {
  width: 8px; height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 0 rgba(30, 168, 184, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .hero-badge { font-size: 0.85rem; padding: 12px 16px; border-radius: 18px; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(30, 168, 184, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(30, 168, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 168, 184, 0); }
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim);
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--teal-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--orange);
  animation: arrowDrop 1.8s ease-in-out infinite;
}
@keyframes arrowDrop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Stats ---------- */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--navy-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--ff-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--orange); }
.stat-label { display: block; margin-top: 6px; color: var(--ink-dim); font-size: 0.9rem; font-weight: 600; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Section titles ---------- */
section { padding: 110px 0; }
.section-title { font-family: var(--ff-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 560px; margin-bottom: 56px; }
.accent { color: var(--orange); }

/* ---------- Services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow); }
.service-icon { font-size: 1.8rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-dim); font-size: 0.94rem; }
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Migration / hosting takeover ---------- */
.migration-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
@media (max-width: 980px) { .migration-grid { grid-template-columns: 1fr; } }

.presence-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .presence-grid { grid-template-columns: 1fr; } }
.migration-note {
  color: var(--ink-dim);
  font-size: 0.9rem;
  max-width: 640px;
  margin-bottom: 32px;
}
.migration-note span { color: var(--orange); font-weight: 800; }

/* ---------- Showcase ---------- */
.work { background: var(--navy-2); }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.showcase-card {
  display: block;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.showcase-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--teal); }
.showcase-art {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.showcase-art span {
  font-family: var(--ff-display);
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 1;
}
.showcase-art::before {
  content: "";
  position: absolute; inset: -40%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px);
}
.art-1 { background: linear-gradient(135deg, #14828f, #0f1c26); }
.art-2 { background: linear-gradient(135deg, #f47c20, #1b3242); }
.art-3 { background: linear-gradient(135deg, #2e7d32, #0f1c26); }
.art-4 { background: linear-gradient(135deg, #6a3fb5, #14282f); }
.art-5 { background: linear-gradient(135deg, #c0392b, #1b1414); }
.art-6 { background: linear-gradient(135deg, #1ea8b8, #142735); }
.art-7 { background: linear-gradient(135deg, #3a4750, #101820); }
.art-8 { background: linear-gradient(135deg, #f47c20, #14282f); }
.art-9 { background: linear-gradient(135deg, #14828f, #f47c20); }

.showcase-body { padding: 20px 22px 24px; }
.showcase-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.showcase-body p { color: var(--ink-dim); font-size: 0.88rem; margin-bottom: 14px; }
.visit-link { font-weight: 700; font-size: 0.85rem; color: var(--orange); }
.showcase-card:hover .visit-link { color: var(--orange-2); }

@media (max-width: 980px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-num { font-family: var(--ff-display); font-size: 2.2rem; color: var(--teal-2); opacity: 0.6; }
.process-step h3 { font-size: 1.25rem; margin: 10px 0 10px; }
.process-step p { color: var(--ink-dim); }
@media (max-width: 780px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Pricing ---------- */
.pricing { background: var(--navy-2); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; margin-bottom: 32px; }

.price-card {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  border: 1px solid rgba(244,124,32,0.35);
  border-radius: 22px;
  padding: 40px 36px;
  position: relative;
  box-shadow: var(--shadow);
}
.price-card-tag {
  display: inline-block;
  background: rgba(244,124,32,0.15);
  color: var(--orange-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.price-amount { display: flex; align-items: baseline; gap: 10px; }
.price-main { font-family: var(--ff-display); font-size: 3rem; color: var(--ink); }
.price-main-sm { font-family: var(--ff-display); font-size: 1.8rem; color: var(--orange); }
.price-sep { color: var(--ink-dim); font-weight: 600; }
.price-monthly { margin-bottom: 26px; margin-top: 4px; }
.price-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.price-features li { padding-left: 28px; position: relative; color: var(--ink-dim); font-size: 0.96rem; }
.price-features li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--teal-2); font-weight: 800;
}
.price-feature-highlight { color: var(--orange-2) !important; font-weight: 700; }
.price-feature-highlight::before { color: var(--orange) !important; }

.featured-growth { border-color: rgba(30, 168, 184, 0.4); }
.tag-growth { background: rgba(30, 168, 184, 0.15); color: var(--teal-2); }
.featured-growth .price-main-sm { color: var(--teal-2); }
.featured-growth .price-feature-highlight { color: var(--teal-2) !important; }
.featured-growth .price-feature-highlight::before { color: var(--teal-2) !important; }

.price-custom {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 22px;
  padding: 40px 36px;
}
.price-custom h3 { font-size: 1.4rem; margin-bottom: 14px; }
.price-custom p { color: var(--ink-dim); margin-bottom: 26px; max-width: 560px; }
.price-custom .btn { max-width: 280px; }

@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-detail { margin-top: 22px; }
.contact-label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-2); font-weight: 700; margin-bottom: 4px; }
.contact-detail a { font-weight: 700; font-size: 1.05rem; }
.contact-detail a:hover { color: var(--orange); }

.contact-form { background: var(--navy-2); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--ink-dim); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--teal-2); }
.form-status { text-align: center; font-size: 0.9rem; color: var(--teal-2); min-height: 1.2em; }

@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 14, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-sub { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 22px; }
.modal form { display: flex; flex-direction: column; gap: 16px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--teal-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { color: var(--ink-dim); font-size: 0.85rem; }
.footer-link { color: var(--ink-dim); font-size: 0.85rem; font-weight: 600; }
.footer-link:hover { color: var(--orange); }
