/* Basaran AI — basaran.ai
   Dark single-theme design system. No light mode: every colour below is the
   final colour, so nothing shifts if a visitor's OS is set to light. */

:root {
  --background: 0 0% 10%;
  --foreground: 0 0% 96%;
  --primary: 119 99% 46%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 18%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 16%;
  --muted-foreground: 0 0% 60%;
  --accent: 119 99% 46%;
  --accent-foreground: 0 0% 4%;
  --destructive: 0 84% 60%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 119 99% 46%;
  --radius: 0.5rem;
  --nav-button: 0 0% 18%;
  --hero-bg: 0 0% 8%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: hsl(var(--hero-bg));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ---------- animation ---------- */

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.fade-up {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in { opacity: 0; animation: fade-in 0.5s ease-out forwards; }

/* Scroll reveal. The hiding rule is scoped to .js so that if the script never
   runs — blocked, errored, ancient browser — every section is simply visible
   instead of a page of invisible text. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ---------- navbar ---------- */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
@media (min-width: 1024px) { .site-nav { padding: 1.25rem 4rem; } }

.site-nav.is-scrolled {
  background: hsl(var(--hero-bg) / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: hsl(var(--border));
}

.nav-logo {
  color: hsl(var(--foreground));
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em;
  text-decoration: none; white-space: nowrap;
}
.nav-logo .dot { color: hsl(var(--primary)); }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.75rem; color: hsl(var(--muted-foreground));
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: hsl(var(--foreground)); }

.nav-cta {
  display: none;
  color: hsl(var(--foreground));
  background: hsl(var(--nav-button));
  border: 0; border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-family: inherit; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; align-items: center; } }
.nav-cta:hover { background: hsl(var(--nav-button) / 0.8); }
.nav-cta:active { transform: scale(0.97); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: hsl(var(--hero-bg));
  overflow: hidden;
}

/* Sits under the 3D canvas. If the scene is slow, blocked, or ever goes away,
   this is what the visitor sees — so it has to look deliberate on its own. */
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, hsl(var(--primary) / 0.22) 0%, transparent 62%),
    radial-gradient(45% 45% at 12% 82%, hsl(var(--primary) / 0.10) 0%, transparent 70%),
    linear-gradient(160deg, hsl(0 0% 12%) 0%, hsl(var(--hero-bg)) 55%, hsl(0 0% 5%) 100%);
}
.hero-fallback::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(hsl(var(--border) / 0.55) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 78%);
}

.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene canvas { width: 100% !important; height: 100% !important; display: block; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, hsl(var(--hero-bg) / 0.92) 0%, hsl(var(--hero-bg) / 0.35) 42%, transparent 70%),
    rgb(0 0 0 / 0.30);
}

.hero-content {
  position: relative; z-index: 10; pointer-events: none;
  width: 100%; max-width: 90%;
  padding: 8rem 1.5rem 2.5rem;
}
@media (min-width: 640px)  { .hero-content { max-width: 32rem; } }
@media (min-width: 768px)  { .hero-content { padding: 8rem 2.5rem 3rem; } }
@media (min-width: 1024px) { .hero-content { max-width: 46rem; } }

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.05em;
  text-transform: uppercase; color: hsl(var(--foreground));
}
@media (min-width: 768px) { .hero h1 { margin-bottom: 1rem; } }
.hero h1 .accent { color: hsl(var(--primary)); }

.hero-sub {
  margin: 0 0 0.75rem;
  color: hsl(var(--foreground) / 0.8);
  font-size: clamp(1.125rem, 2.5vw, 1.875rem); font-weight: 300; line-height: 1.25;
}
@media (min-width: 768px) { .hero-sub { margin-bottom: 1.5rem; } }

.hero-desc {
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  font-size: clamp(0.875rem, 1.5vw, 1.25rem); font-weight: 300; line-height: 1.6;
}
@media (min-width: 768px) { .hero-desc { margin-bottom: 2rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; font-weight: 700; }

.btn {
  pointer-events: auto;
  display: inline-block; border: 0; border-radius: 2px;
  padding: 0.75rem 1.5rem;
  font-family: inherit; font-size: 0.875rem; font-weight: 700;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease, background-color 0.2s ease;
}
@media (min-width: 768px) { .btn { padding: 1rem 2rem; } }
.btn:active { transform: scale(0.97); }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { filter: brightness(1.1); }

.btn-white { background: #fff; color: hsl(var(--background)); }
.btn-white:hover { filter: brightness(0.9); }

.btn-outline {
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.btn-outline:hover { background: hsl(var(--secondary)); }

.hero-trust {
  margin: 1rem 0 0;
  color: hsl(var(--muted-foreground) / 0.6);
  font-size: 0.75rem; font-weight: 300; line-height: 1.7;
}
@media (min-width: 768px) { .hero-trust { margin-top: 1.5rem; } }

/* ---------- sections ---------- */

section { padding: 5rem 0; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { section { padding: 7rem 0; } }

.eyebrow {
  margin: 0 0 1.25rem;
  color: hsl(var(--primary));
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
}

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.035em;
}
.section-head p {
  margin: 0; color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 1.6vw, 1.125rem); font-weight: 300; line-height: 1.7;
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: hsl(var(--primary) / 0.45); transform: translateY(-2px); }

.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: 1.25rem;
  border: 1px solid hsl(var(--primary) / 0.5); border-radius: 999px;
  color: hsl(var(--primary)); font-size: 0.8125rem; font-weight: 600;
}
.card h3 {
  margin: 0 0 0.625rem;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
}
.card p {
  margin: 0; color: hsl(var(--muted-foreground));
  font-size: 0.9375rem; font-weight: 300; line-height: 1.7;
}
.card p + p { margin-top: 0.75rem; }

/* ---------- pricing ---------- */

.plan { display: flex; flex-direction: column; }
.plan .plan-name {
  margin: 0 0 0.5rem;
  font-size: 0.75rem; font-weight: 500; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: 0.15em;
}
.plan .price {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em;
  color: hsl(var(--foreground));
}
.plan .price .per {
  font-size: 0.875rem; font-weight: 300; letter-spacing: 0;
  color: hsl(var(--muted-foreground));
}
.plan .price-note {
  margin: 0 0 1.5rem; color: hsl(var(--muted-foreground));
  font-size: 0.8125rem; font-weight: 300;
}
.plan ul { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.plan li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.625rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem; font-weight: 300; line-height: 1.6;
}
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 999px; background: hsl(var(--primary));
}
.plan .btn { margin-top: auto; }
.plan.featured { border-color: hsl(var(--primary) / 0.55); }

.price-footnote {
  margin: 2rem 0 0; color: hsl(var(--muted-foreground));
  font-size: 0.875rem; font-weight: 300; line-height: 1.7; max-width: 52rem;
}

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

.contact-detail { margin-bottom: 1.75rem; }
.contact-detail dt {
  margin-bottom: 0.4rem;
  color: hsl(var(--primary));
  font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.contact-detail dd {
  margin: 0; font-size: 1rem; font-weight: 300; line-height: 1.65;
  color: hsl(var(--foreground));
}
.contact-detail dd a { color: hsl(var(--foreground)); text-decoration: none; border-bottom: 1px solid hsl(var(--border)); }
.contact-detail dd a:hover { border-bottom-color: hsl(var(--primary)); }
.contact-detail dd .sub { display: block; margin-top: 0.3rem; color: hsl(var(--muted-foreground)); font-size: 0.8125rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 3.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem; font-weight: 300; line-height: 1.8;
}
.footer-top { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand { color: hsl(var(--foreground)); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 0.75rem; }
.footer-brand .dot { color: hsl(var(--primary)); }
.footer-col h4 {
  margin: 0 0 0.9rem; color: hsl(var(--foreground));
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
}
.footer-col a { display: block; color: hsl(var(--muted-foreground)); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s ease; }
.footer-col a:hover { color: hsl(var(--foreground)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border)); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ---------- legal pages ---------- */

.legal-main { padding: 9rem 1.5rem 5rem; max-width: 52rem; }
@media (min-width: 768px) { .legal-main { padding: 11rem 2.5rem 6rem; } }

.legal-main > header { margin-bottom: 3rem; }
.legal-main h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.045em;
}
.legal-main .updated { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.8125rem; font-weight: 300; }

.legal-copy { color: hsl(var(--muted-foreground)); font-size: 1rem; font-weight: 300; line-height: 1.8; }
.legal-copy h2 {
  margin: 2.75rem 0 0.9rem; color: hsl(var(--foreground));
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em;
}
.legal-copy h3 {
  margin: 2rem 0 0.6rem; color: hsl(var(--foreground));
  font-size: 1rem; font-weight: 600;
}
.legal-copy p { margin: 0 0 1.1rem; }
.legal-copy strong { color: hsl(var(--foreground)); font-weight: 500; }
.legal-copy a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: hsl(var(--border)); }
.legal-copy a:hover { text-decoration-color: hsl(var(--primary)); }
.legal-copy ul, .legal-copy ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.legal-copy li { margin-bottom: 0.55rem; }

.legal-callout {
  margin: 0 0 2rem; padding: 1.5rem;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary)); border-radius: var(--radius);
  color: hsl(var(--foreground)); font-weight: 300;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-contact {
  margin-top: 3rem; padding: 1.75rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--muted) / 0.5);
}
.legal-contact p { margin: 0 0 0.35rem; }

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-in, .js .reveal, .js .reveal.is-visible {
    animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important;
  }
  .card:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .site-nav, .hero-scene, .hero-fallback, .hero-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-copy, .legal-main .updated { color: #000; }
}

.hero-scene { opacity: 0; transition: opacity 0.9s ease; }
.hero-scene.is-loaded { opacity: 1; }
