/* ============================================
   Samuel James Group — Premium Disruptor
   Inspired by huly.io: dark canvas, electric
   accent, glassmorphism, glow, grid background.
   ============================================ */

:root {
  --bg:         #07070C;
  --bg-soft:    #0C0C16;
  --surface:    rgba(255, 255, 255, 0.025);
  --surface-2:  rgba(255, 255, 255, 0.05);
  --border:     rgba(255, 255, 255, 0.08);
  --border-2:   rgba(255, 255, 255, 0.14);

  --text:       #ECECF4;
  --muted:      #9A9AB2;
  --faint:      #62627A;

  --accent:     #4D7CFF;
  --accent-2:   #9B6CFF;
  --accent-cy:  #38E1FF;
  --glow:       rgba(77, 124, 255, 0.45);
  --glow-2:     rgba(155, 108, 255, 0.35);

  --grad:       linear-gradient(100deg, #6E9BFF 0%, #9B6CFF 50%, #38E1FF 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-orb {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: 0.55; pointer-events: none;
}
.bg-orb--1 { width: 620px; height: 620px; top: -220px; left: -120px;
  background: radial-gradient(circle, var(--glow), transparent 70%); }
.bg-orb--2 { width: 560px; height: 560px; top: 280px; right: -180px;
  background: radial-gradient(circle, var(--glow-2), transparent 70%); }
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Shared glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 100px; background: var(--surface);
}
.eyebrow.center { margin: 0 auto; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-cy); box-shadow: 0 0 10px var(--accent-cy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--primary {
  background: var(--grad); color: #07070C; font-weight: 600;
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn--ghost {
  background: var(--surface-2); color: var(--text); border-color: var(--border-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--accent); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.22s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Helpers ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.strike { text-decoration: line-through; text-decoration-color: var(--accent); opacity: 0.6; }

/* ====================================================
   NAV
   ==================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease; padding: 14px 0;
}
.nav.scrolled {
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 12px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 16px; padding: 24px;
  background: rgba(7,7,12,0.96); border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a { color: var(--muted); font-size: 17px; }
.nav__mobile .btn { justify-content: center; }

/* ====================================================
   HERO
   ==================================================== */
.hero { padding: 170px 0 90px; position: relative; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 70px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 22px 0;
}
.hero__sub { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--faint); flex-wrap: wrap; }
.hero__trust .dot { color: var(--accent); }

/* Dashboard mockup */
.hero__visual { position: relative; }
.hero__glow {
  position: absolute; inset: -10% -10% -30% -10%; z-index: -1;
  background: radial-gradient(circle at 60% 40%, var(--glow), transparent 65%);
  filter: blur(40px); opacity: 0.8;
}
.dash { padding: 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.dash__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dash__dotrow { display: flex; gap: 6px; }
.dash__dotrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.dash__title { font-size: 13px; color: var(--muted); font-family: var(--font-display); }
.dash__live { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--accent-cy); }
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cy); box-shadow: 0 0 8px var(--accent-cy); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.stat { background: var(--bg-soft); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat__label { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.stat__value { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--text); }
.stat__delta { font-size: 12px; }
.stat__delta.up { color: #4ade80; }

.dash__feed { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.015); }
.feed__row { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.feed__tag { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; letter-spacing: 0.05em; }
.feed__tag.green { background: rgba(74,222,128,0.15); color: #4ade80; }
.feed__tag.blue { background: rgba(77,124,255,0.18); color: #7fa0ff; }
.feed__tag.violet { background: rgba(155,108,255,0.18); color: #c0a3ff; }

/* ====================================================
   MARQUEE
   ==================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; margin: 30px 0; }
.marquee__track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: scroll 24s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: 0.05em; color: var(--faint);
}
.marquee__track .sep { color: var(--accent); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ====================================================
   SECTIONS
   ==================================================== */
.section { padding: 100px 0; position: relative; }
.section__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section__head .eyebrow { margin-bottom: 22px; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em;
}
.section__lead { font-size: 18px; color: var(--muted); margin-top: 22px; }
.section__lead em { color: var(--text); font-style: normal; }

/* PROBLEM */
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prob {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); position: relative; overflow: hidden;
}
.prob::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5; }
.prob__num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent-cy); margin-bottom: 18px;
}
.prob h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.prob p { color: var(--muted); font-size: 15px; }

/* THE SHIFT */
.section--shift { padding: 110px 0; }
.shift { max-width: 860px; margin: 0 auto; text-align: center; }
.shift__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 24px 0;
}
.shift__lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto; }
.shift__lead em { color: var(--text); font-style: normal; }

/* THE OS */
.os__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 32px; transition: all 0.28s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.card__icon {
  font-size: 26px; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 11px; }
.card p { color: var(--muted); font-size: 15px; }
.card--feature {
  background: linear-gradient(145deg, rgba(77,124,255,0.1), rgba(155,108,255,0.06));
  border-color: rgba(77,124,255,0.3);
}

/* LADDER / SERVICES */
.ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tier { padding: 32px; position: relative; transition: all 0.28s ease; }
.tier:hover { transform: translateY(-4px); border-color: var(--border-2); }
.tier__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tier__tag {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-cy);
  font-weight: 600; width: fit-content;
}
.tier h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.tier__desc { color: var(--muted); font-size: 15px; }
.tier__cta { margin-top: 22px; }
.free { color: #4ade80; font-size: 16px; font-weight: 500; }

.tier--flagship {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(77,124,255,0.14), rgba(155,108,255,0.08));
  border: 1px solid rgba(77,124,255,0.38);
  box-shadow: 0 20px 60px -25px var(--glow);
}
.tier--flagship h3 { font-size: 28px; }
.tier--wide { grid-column: span 2; }
.tier__badge {
  position: absolute; top: -12px; right: 28px;
  background: var(--grad); color: #07070C; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ENDGAME */
.section--endgame { padding: 60px 0 100px; }
.endgame {
  max-width: 920px; margin: 0 auto; text-align: center;
  padding: 72px 48px; position: relative; overflow: hidden;
  border: 1px solid var(--border-2);
}
.endgame__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, var(--glow), transparent 70%);
}
.endgame__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; margin: 22px 0;
}
.endgame__lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.endgame__cta { display: flex; justify-content: center; }

/* WHY US */
.whyus { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.whyus__copy .section__title { font-size: clamp(30px, 4vw, 46px); }
.whyus__copy .section__lead { font-size: 17px; }
.whyus__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bigstat { padding: 30px; text-align: center; }
.bigstat__num {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  display: block; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bigstat__label { font-size: 14px; color: var(--muted); margin-top: 8px; display: block; }

/* FINAL CTA */
.section--final { padding: 60px 0 110px; }
.final {
  max-width: 860px; margin: 0 auto; text-align: center; padding: 72px 48px;
  border: 1px solid var(--border-2);
  background: linear-gradient(145deg, rgba(77,124,255,0.08), rgba(155,108,255,0.05));
}
.final__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -0.02em;
}
.final__lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 22px auto 32px; }
.final__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final__note { font-size: 14px; color: var(--faint); margin-top: 22px; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__brand { max-width: 320px; }
.footer__logo { height: 30px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 15px; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; flex-wrap: wrap; }

/* ====================================================
   APPLICATION MODAL
   ==================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,4,8,0.78); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  position: relative; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto;
  padding: 40px; border: 1px solid var(--border-2);
  background: linear-gradient(160deg, rgba(20,20,32,0.96), rgba(12,12,22,0.96));
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; transition: .2s; z-index: 2;
}
.modal__close:hover { color: var(--text); border-color: var(--accent); }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 12px; }
.modal__sub { color: var(--muted); font-size: 16px; margin-bottom: 26px; }

.aform { display: flex; flex-direction: column; gap: 16px; }
.aform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aform label, .aform__full { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.aform input, .aform select, .aform textarea {
  background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 12px 13px; color: var(--text); font-size: 15px; font-family: var(--font-body); width: 100%;
}
.aform input::placeholder, .aform textarea::placeholder { color: var(--faint); }
.aform input:focus, .aform select:focus, .aform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,124,255,0.15); }
.aform select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9AB2' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; cursor: pointer; }
.aform textarea { resize: vertical; min-height: 70px; }
.aform__full { margin-top: 0; }
.aform .btn { margin-top: 8px; }
.aform__note { font-size: 13px; color: var(--faint); text-align: center; margin-top: 2px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.aform.is-loading #applySubmit { opacity: 0.6; pointer-events: none; }
.aform__error { color: #ff6b6b; font-size: 14px; text-align: center; }

.modal__success { text-align: center; padding: 20px 0; }
.modal__check {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; color: #07070C;
  background: var(--grad); box-shadow: 0 10px 30px -6px var(--glow);
}

@media (max-width: 560px) {
  .modal__card { padding: 28px 22px; }
  .aform__row { grid-template-columns: 1fr; }
}

/* ====================================================
   REVEAL ANIMATION
   ==================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 920px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 140px 0 70px; }
  .problem__grid, .os__grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .tier--flagship, .tier--wide { grid-column: span 1; }
  .whyus { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
  .endgame, .final { padding: 52px 28px; }
}
@media (max-width: 480px) {
  .whyus__stats { grid-template-columns: 1fr; }
  .dash__grid { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
  .hero__cta .btn, .final__cta .btn { width: 100%; justify-content: center; }
}
