/* ============================================================
   Clevvar IT — storefront styles
   Dark, teal-accented, Space Grotesk display + Sora body + Space Mono labels
   ============================================================ */

:root {
  /* Brand accents */
  --accent: #1FB6A6;
  --accent-hover: #2CCBBA;
  --accent-soft: #123833;
  --accent-glow: rgba(31, 182, 166, 0.35);

  /* Dark neutrals */
  --bg: #0E1116;
  --surface: #161A21;
  --raised: #1C1F24;
  --border: #2A2F3A;
  --text: #E8EAED;
  --muted: #9AA3AF;

  /* Derived */
  --border-soft: rgba(42, 47, 58, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, 0.6);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0: 1rem;
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.6vw, 3.9rem);

  --wrap: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* Ambient page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(31, 182, 166, 0.14), transparent 60%),
    radial-gradient(800px 500px at 8% 8%, rgba(31, 182, 166, 0.06), transparent 55%);
  pointer-events: none;
}

/* ---------- Focus & a11y ---------- */
:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #04110f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #22C4B3, #0E8577);
  box-shadow: 0 4px 14px -4px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  flex: none;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__mark--sm { width: 30px; height: 30px; border-radius: 9px; }
.brand__mark--sm svg { width: 17px; height: 17px; }
.brand__word { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__word-dim { color: var(--muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 18px;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--sm { padding: 8px 15px; font-size: 0.88rem; border-radius: 9px; }

.btn--primary {
  background: linear-gradient(145deg, var(--accent-hover), var(--accent));
  color: #04110f;
  box-shadow: 0 8px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--raised); }

.btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(40px, 7vw, 80px); overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(31,182,166,0.28);
  padding: 6px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(44,203,186,0.2);
}

.hero__title { font-size: var(--step-4); max-width: 15ch; margin-bottom: 20px; }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 52ch; margin-bottom: 30px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__meta {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0; padding: 0;
}
.hero__meta li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero__meta li span { color: var(--accent); font-size: 0.6rem; }

/* Browser motif */
.hero__visual { position: relative; }
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
@media (prefers-reduced-motion: reduce) { .browser { transform: none; } }

.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  background: var(--raised);
  border-bottom: 1px solid var(--border-soft);
}
.browser__dot { width: 10px; height: 10px; border-radius: 50%; background: #313742; }
.browser__dot:nth-child(1) { background: #3a4150; }
.browser__url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 5px 12px;
  border-radius: 7px;
  flex: 1;
}
.browser__tabs {
  display: flex; gap: 6px;
  padding: 12px 14px 4px;
  overflow: hidden;
}
.tab {
  font-size: 0.76rem;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: 8px 8px 4px 4px;
  white-space: nowrap;
}
.tab--active { border-color: var(--accent); color: var(--accent-hover); box-shadow: 0 -2px 12px -6px var(--accent-glow); }
.tab--muted { color: var(--muted); opacity: 0.6; }

.browser__body { padding: 14px; display: grid; gap: 10px; }
.ws-card {
  background: var(--raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.ws-card--flag { border-color: rgba(31,182,166,0.4); background: linear-gradient(145deg, rgba(31,182,166,0.09), var(--raised)); }
.ws-card__top { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.ws-card__meta { color: var(--muted); font-size: 0.78rem; margin-top: 3px; padding-left: 19px; }
.ws-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.ws-dot--b { background: #6f8bd4; }
.ws-dot--c { background: #d4a76f; }

.ws-suspend {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px dashed rgba(31,182,166,0.4);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  background: var(--accent-soft);
}
.ws-suspend__label { color: var(--accent-hover); font-size: 0.8rem; }
.ws-suspend__val { font-family: var(--font-mono); font-weight: 700; color: var(--accent-hover); font-size: 0.85rem; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--why { border-top: 1px solid var(--border-soft); }
.section__head { max-width: 62ch; margin-bottom: 48px; }
.section__title { font-size: var(--step-3); margin: 14px 0 16px; }
.section__lede { color: var(--muted); font-size: var(--step-1); max-width: 58ch; }

/* ============================================================
   FLAGSHIP
   ============================================================ */
.flagship {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(160deg, rgba(31,182,166,0.07), transparent 45%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 64px;
}
.flagship__glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(20px);
  opacity: 0.5;
  pointer-events: none;
}
.flagship__left, .flagship__right { position: relative; }

.flagship__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid transparent;
}
.pill--flag { background: var(--accent); color: #04110f; font-weight: 700; }
.pill--soon { background: transparent; border-color: var(--border); color: var(--muted); }

.flagship__name { font-size: var(--step-3); margin-bottom: 6px; }
.flagship__tag { font-family: var(--font-display); color: var(--accent-hover); font-size: var(--step-1); font-weight: 500; margin-bottom: 16px; }
.flagship__desc { color: var(--muted); max-width: 54ch; margin-bottom: 22px; }

.feature-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 13px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.96rem; }
.feature-list__ic {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(31,182,166,0.25);
  margin-top: 1px;
}

.flagship__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-hover);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.18s ease, color 0.18s ease;
}
.link-arrow:hover { gap: 10px; color: var(--accent); }

/* Pricing column */
.pricing__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 14px;
}
.price-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.price-card--pro { border-color: rgba(31,182,166,0.45); background: linear-gradient(160deg, rgba(31,182,166,0.08), var(--raised)); }
.price-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.price-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.price-card__cost { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.price-card__per { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.price-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.price-card__list li { color: var(--muted); font-size: 0.9rem; padding-left: 20px; position: relative; }
.price-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card__alts {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-hover);
  font-size: 1rem;
}
.price-card__alts small { color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.price-card__alts-sep { color: var(--border); }
.pricing__note { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }

/* ============================================================
   TEASERS
   ============================================================ */
.teasers__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 20px;
}
.teasers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.teaser {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  opacity: 0.82;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.teaser:hover { transform: translateY(-4px); opacity: 1; border-color: var(--border); }
.teaser__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 8px;
}
.teaser__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--raised);
  border: 1px solid var(--border-soft);
  color: var(--accent-hover);
  margin-bottom: 16px;
}
.teaser__name { font-size: 1.12rem; margin-bottom: 7px; }
.teaser__desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--border); }
.pillar__ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(31,182,166,0.16), var(--accent-soft));
  border: 1px solid rgba(31,182,166,0.3);
  color: var(--accent-hover);
  margin-bottom: 20px;
}
.pillar__title { font-size: 1.28rem; margin-bottom: 11px; }
.pillar__desc { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   CLOSER
   ============================================================ */
.closer { padding-block: clamp(60px, 9vw, 110px); border-top: 1px solid var(--border-soft); }
.closer__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
}
.closer__mark {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #22C4B3, #0E8577);
  box-shadow: 0 10px 30px -8px var(--accent-glow);
  margin-bottom: 24px;
}
.closer__mark svg { width: 28px; height: 28px; }
.closer__title { font-size: var(--step-3); margin-bottom: 14px; }
.closer__sub { color: var(--muted); font-size: var(--step-1); margin-bottom: 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-soft); padding-block: 36px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.footer__copy { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color 0.18s ease; }
.footer__links a:hover { color: var(--accent-hover); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--raised);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  max-width: calc(100vw - 32px);
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast__accent { color: var(--accent-hover); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(.2,.6,.2,1), transform 0.6s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .teaser, .pillar { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; }
  .flagship { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(14, 17, 22, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px clamp(20px, 5vw, 40px) 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 11px 4px; font-size: 1rem; border-bottom: 1px solid var(--border-soft); }
  .nav__cta { margin-top: 10px; justify-content: center; }
  .nav__toggle { display: flex; }
  @media (prefers-reduced-motion: reduce) { .nav__links { transition: none; } }
}

@media (max-width: 520px) {
  .teasers { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
