/* ============================================================
   Agentic Ocean — landing page
   Self-contained dark, cinematic SaaS aesthetic.
   (Legal pages keep their own styles.css — untouched.)
   ============================================================ */

:root {
  --bg-0: #03101d;
  --bg-1: #061a2c;
  --text: #eef5fc;
  --muted: #9fb4ca;
  --faint: #6b8198;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --teal: #2dd4bf;

  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(2, 12, 24, 0.55);
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 50%, var(--violet));

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.home-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 0% 0%, rgba(139, 92, 246, 0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  overflow-x: hidden;
}

/* ---------- Decorative background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 46vw; height: 46vw;
  top: -12vw; right: -8vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 65%);
  animation: float-a 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 40vw; height: 40vw;
  bottom: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
  animation: float-b 22s ease-in-out infinite alternate;
}

.orb-c {
  width: 30vw; height: 30vw;
  top: 35%; left: 55%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 65%);
  animation: float-c 26s ease-in-out infinite alternate;
}

/* faint grid + grain overlay for texture */
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}

@keyframes float-a { to { transform: translate3d(-4vw, 4vw, 0) scale(1.1); } }
@keyframes float-b { to { transform: translate3d(5vw, -3vw, 0) scale(1.12); } }
@keyframes float-c { to { transform: translate3d(-6vw, -5vw, 0) scale(0.92); } }

/* ---------- Shared bits ---------- */
a { color: inherit; }

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #04121f;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-mark.small { width: 1.8rem; height: 1.8rem; font-size: 0.66rem; border-radius: 0.5rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 18, 31, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-name { font-family: Sora, Inter, sans-serif; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover { color: var(--text); background: var(--glass); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.hero-copy { animation: rise 0.7s ease both; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.badge .eyebrow { color: var(--text); }
.badge .lede {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.badge-sep { width: 1px; height: 0.9rem; background: var(--line); }

.badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

h1 {
  margin: 1.2rem 0 0;
  max-width: 18ch;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.service-note {
  margin: 1.3rem 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--glass);
}
.button.ghost:hover { background: var(--glass-strong); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.button.primary {
  color: #04121f;
  border: 0;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(34, 211, 238, 0.42); background-position: 100% 0; }
.button.primary:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Opt-in card ---------- */
.card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-strong), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.opt-in {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
  animation: rise 0.7s ease 0.08s both;
}

/* glowing top edge */
.opt-in::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.8), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-copy h2 {
  margin: 0.45rem 0 0.4rem;
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Form ---------- */
.sms-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.field-row { display: grid; gap: 0.3rem; }

.sms-form label:not(.consent-check) {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.sms-form input[type="text"],
.sms-form input[type="tel"],
.sms-form input[type="email"] {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(2, 10, 20, 0.55);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sms-form input::placeholder { color: var(--faint); }

.sms-form input:hover { border-color: rgba(255, 255, 255, 0.2); }

.sms-form input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(2, 10, 20, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.05);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.consent-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: var(--cyan);
  cursor: pointer;
}

.sms-form .button.primary { width: 100%; min-height: 2.9rem; font-size: 0.97rem; }

.sms-disclosure {
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.45;
}
.sms-disclosure a { color: var(--muted); text-decoration: underline; text-underline-offset: 0.15em; }
.sms-disclosure a:hover { color: var(--text); }

.form-status {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: var(--radius-sm);
  color: #c8fff0;
  background: rgba(45, 212, 191, 0.12);
  font-weight: 600;
}

.form-status.error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #ffd9d9;
  background: rgba(248, 113, 113, 0.12);
}

/* ---------- Footer ---------- */
.site-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 1.4rem clamp(1.1rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-bottom a { color: var(--muted); text-decoration: none; }
.site-bottom a:hover { color: var(--text); }
.site-bottom a { margin-left: auto; }
.site-bottom a + a { margin-left: 1.1rem; }

/* ---------- Focus visibility ---------- */
:where(a, button, input):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 0.5rem rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.25rem;
    align-items: start;
  }
  h1 { max-width: 100%; }
  .service-note { max-width: 100%; }
  .opt-in { margin-inline: auto; }
}

@media (max-width: 560px) {
  .nav-links a:first-child { display: none; } /* keep Terms visible, Privacy still in hero + footer */
  .splash-actions .button { flex: 1; }
  .site-bottom a { margin-left: 0; }
  .site-bottom a:nth-of-type(1) { margin-left: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .badge-dot { animation: none; }
  .hero-copy, .opt-in { animation: none; }
  .button:hover { transform: none; }
}

/* ---------- Featured products ---------- */
.products {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) 0 1rem;
  border-top: 1px solid var(--line-soft);
}

.section-head { max-width: 52ch; }
.section-head h2 {
  margin: 0.5rem 0 0;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.98rem; }

.product-card {
  display: block;
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* glowing top edge, matching the opt-in card */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.8), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 34px 74px rgba(2, 12, 24, 0.6);
}

.product-main { display: flex; align-items: center; gap: 0.8rem; }
.product-mark {
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.product-mark sup { font-size: 0.5em; color: var(--faint); }
.product-flag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04121f;
  background: var(--grad);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.3);
}
.product-tagline { margin: 0.95rem 0 0; font-weight: 600; color: var(--read); font-size: 1.02rem; }
.product-desc { margin: 0.5rem 0 0; max-width: 64ch; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.product-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--read);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
}
.product-cta svg { width: 1rem; height: 1rem; transition: transform 0.18s ease; }
.product-card:hover .product-cta svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .product-card:hover { transform: none; }
}

/* URBAI "launching soon" marker on the product card */
.product-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
}
.soon-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }
