/* ————————————————————————————————————————
   Moor Builds — v7 "midnight blue + sunshine"
   Near-black + royal blue, with a cheerful sunny
   amber accent. Simple, fast, clear. No custom
   cursor, no scroll hijacking — native speed.
   ———————————————————————————————————————— */

:root {
  --bg: #131826;          /* ~20% lighter than before */
  --bg-deep: #171E2E;
  --card: #1B2334;
  --card-2: #212B42;
  --ink: #F2F5FB;
  --muted: #BBC9E4;   /* original #A3AFC6 + 15% brighter */
  --blue: #4C8DFF;
  --blue-soft: #8FB8FF;
  --blue-deep: #2E63D6;
  --cyan: #5ED2F5;
  --sun: #FFC24B;         /* cheerful amber accent */
  --line: rgba(237, 241, 248, 0.11);
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 16px 38px rgba(0, 0, 0, 0.42);
  --glow-blue: 0 0 26px rgba(76, 141, 255, 0.30);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0.4em 0 0.5em; }
h1 em { font-style: italic; color: var(--sun); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.7em; }
h3 { font-size: 1.22rem; margin-bottom: 0.4em; }

a { color: var(--blue-soft); }
a:hover { color: var(--cyan); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 720px; }

/* ————— Motion: quick, soft reveal ————— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ————— Header ————— */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(19, 24, 38, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 10px rgba(76, 141, 255, 0.45));
}
.brand-mark svg { display: block; }
/* 3D logo: spins in on load, then a gentle endless bob-and-tilt */
.brand { perspective: 500px; }
.brand-logo {
  width: 36px; height: 36px; display: block; border-radius: 9px;
  transform-style: preserve-3d;
  animation: logo-spin-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
             logo-bob 3.4s ease-in-out 1.5s infinite;
}
@keyframes logo-spin-in {
  from { transform: rotateY(95deg) scale(0.5); opacity: 0; }
  to { transform: rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotateY(-8deg); }
  50% { transform: translateY(-3px) rotateY(10deg); }
}
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.18rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 0.95rem; padding-bottom: 3px;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--sun);
  transition: width 0.25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ————— Buttons ————— */
.btn {
  display: inline-block; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #F4F8FF;
  font-weight: 700; text-decoration: none;
  padding: 15px 28px; border-radius: 999px;
  border: none; cursor: pointer; font-size: 1rem; font-family: inherit;
  box-shadow: 0 4px 18px rgba(46, 99, 214, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(76, 141, 255, 0.55); color: #F4F8FF; }
.btn:hover::after { left: 130%; }
.btn-ghost {
  background: transparent; color: var(--blue-soft);
  border: 2px solid rgba(76, 141, 255, 0.5); box-shadow: none;
}
.btn-ghost:hover { background: rgba(76, 141, 255, 0.12); border-color: var(--blue); color: var(--blue-soft); transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; color: #F4F8FF !important; }

/* ————— Hero ————— */
.hero {
  padding: 90px 0 76px;
  background:
    radial-gradient(850px 420px at 85% -10%, rgba(76, 141, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 5% 25%, rgba(255, 194, 75, 0.06), transparent 60%),
    var(--bg);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 700; color: var(--sun);
}
.lede { font-size: 1.19rem; color: var(--muted); max-width: 640px; }
.lede strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chips li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 17px;
  font-size: 0.9rem; font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-chips li:hover { transform: translateY(-2px); border-color: rgba(255, 194, 75, 0.55); }

/* ————— Sections ————— */
.section { padding: 76px 0; }
.section-deep { background: var(--bg-deep); }
.section-lede { color: var(--muted); max-width: 620px; margin-bottom: 2em; font-size: 1.08rem; }

/* ————— Three doors ————— */
.door-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.door {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.door:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 194, 75, 0.5);
  box-shadow: var(--shadow-lift);
}
.door-icon { font-size: 2rem; margin-bottom: 12px; }
.door h3 { color: var(--ink); }
.door p { color: var(--muted); font-size: 0.97rem; }
.door-price {
  margin: 16px 0 12px; font-weight: 700; color: var(--sun);
  font-size: 0.95rem; letter-spacing: 0.03em;
}
.link-arrow {
  margin-top: auto; font-weight: 700; text-decoration: none;
  color: var(--blue-soft);
}
.link-arrow:hover { color: var(--cyan); }

/* ————— Trade grid ————— */
.trade-grid {
  list-style: none; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.trade-grid li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 18px; font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.trade-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 141, 255, 0.5);
  box-shadow: var(--shadow-lift);
}

/* ————— Cards ————— */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 141, 255, 0.5);
  box-shadow: var(--shadow-lift);
}
.card h3 { color: var(--blue-soft); }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ————— Steps ————— */
.steps { list-style: none; display: grid; gap: 26px; max-width: 720px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #F4F8FF;
  font-family: "Fraunces", serif; font-size: 1.3rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--glow-blue);
}
.steps h3 { color: var(--blue-soft); }
.steps p { color: var(--muted); }

.callout {
  margin-top: 40px; max-width: 720px;
  background: var(--card); border-left: 5px solid var(--sun);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; box-shadow: var(--shadow);
}
.callout p { color: var(--muted); }
.callout strong { color: var(--ink); }

/* ————— Case study ————— */
.case-study {
  display: grid; gap: 26px;
  grid-template-columns: 1.4fr 1fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.case-study + .case-study { margin-top: 22px; }
.case-study:hover { transform: translateY(-4px); border-color: rgba(76, 141, 255, 0.5); box-shadow: var(--shadow-lift); }
.case-text p { color: var(--muted); margin-bottom: 1.1em; }
.case-text h3 { color: var(--blue-soft); }
.case-badges { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.case-badges span {
  background: rgba(94, 210, 245, 0.10); border: 1px solid rgba(94, 210, 245, 0.3);
  border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
  color: var(--cyan);
}
.case-note { margin-top: 18px; color: var(--muted); font-style: italic; }

/* ————— Pricing ————— */
.pricing-layout { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-popular {
  border: 2px solid var(--blue);
  background: var(--card-2);
  box-shadow: 0 0 34px rgba(76, 141, 255, 0.22);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #F4F8FF; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
  animation: badge-shimmer 4s ease-in-out infinite;
}
@keyframes badge-shimmer {
  0%, 100% { box-shadow: 0 0 12px rgba(76, 141, 255, 0.35); }
  50% { box-shadow: 0 0 28px rgba(76, 141, 255, 0.7); }
}
.price-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--cyan); }
.price-amount { font-family: "Fraunces", serif; font-size: 2.9rem; font-weight: 700; margin: 6px 0 2px; color: var(--ink); }
.price-amount span { font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.price-tag { color: var(--muted); font-style: italic; margin-bottom: 18px; font-size: 0.95rem; }
.price-card ul { list-style: none; margin-bottom: 20px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.price-terms { font-weight: 700; margin-bottom: 18px; color: var(--blue-soft); font-size: 0.95rem; }
.fine { color: var(--muted); font-size: 0.85em; }
.addons-line { margin-top: 26px; color: var(--muted); font-size: 0.95rem; max-width: 820px; }

/* ————— FAQ ————— */
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
details:hover, details[open] { border-color: rgba(76, 141, 255, 0.5); }
summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
summary::marker { color: var(--sun); }
details p { margin-top: 12px; color: var(--muted); }

/* ————— Form ————— */
form { display: grid; gap: 16px; margin-top: 10px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.98rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input, textarea, select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.22);
}
input::placeholder, textarea::placeholder { color: rgba(154, 167, 190, 0.55); }
.form-status { font-weight: 700; color: var(--blue-soft); min-height: 1.4em; }
.form-alt { margin-top: 22px; color: var(--muted); }

/* ————— Footer ————— */
.site-footer { background: #0C1119; color: #AAB7CB; padding: 46px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-brand { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.site-footer a { color: var(--blue-soft); }
.footer-legal { font-size: 0.88rem; opacity: 0.75; }
.footer-meta { text-align: right; }

/* ————— Legal pages (privacy / terms) ————— */
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin: 1.7em 0 0.5em; color: var(--ink); }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.8em; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { color: var(--muted); font-style: italic; font-size: 0.92rem; }
.legal a { color: var(--blue-soft); }

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .popular-badge { animation: none; }
  .brand-logo { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ————— Mobile ————— */
@media (max-width: 900px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .price-popular { order: -1; }
  .door-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 60px 0 54px; }
  .section { padding: 54px 0; }
  .case-study { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
