/* ==========================================================================
   KitchenOS — Landing styles
   Tokens mirror KitchenOS_Editable_Brand_Kit/identity/design-tokens.css
   ========================================================================== */

:root {
  /* Brand */
  --primary: #00b7a3;
  --primary-dark: #0a5c5a;
  --primary-soft: rgba(0, 183, 163, 0.12);
  --accent: #ffb703;
  --night: #0c1520;
  --slate: #1a2a35;
  --muted: #6b7785;
  --off-white: #f5f7f9;

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: var(--off-white);
  --surface: #ffffff;
  --border: #e3e8ee;
  --text: var(--night);
  --text-soft: #46586a;
  --text-muted: var(--muted);

  /* Type */
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.25rem);

  /* Layout */
  --wrap: 1180px;
  --gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 21, 32, 0.04),
    0 8px 24px -12px rgba(12, 21, 32, 0.14);
  --shadow-lg: 0 2px 4px rgba(12, 21, 32, 0.05),
    0 24px 48px -20px rgba(12, 21, 32, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --bg-alt: #0f1a26;
    --surface: var(--slate);
    --border: #263949;
    --text: #eef3f7;
    --text-soft: #b6c3d0;
    --text-muted: #8b9aa9;
    --primary-soft: rgba(0, 183, 163, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35),
      0 24px 48px -20px rgba(0, 0, 0, 0.7);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--step-3);
}
h2 {
  font-size: var(--step-2);
}
h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--primary);
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding-inline-start: 1.15rem;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #04231f;
  box-shadow: 0 6px 18px -8px rgba(0, 183, 163, 0.85);
}

.btn--primary:hover {
  background: #00a190;
  border-color: #00a190;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--step--1);
}

.btn--lg {
  padding: 1rem 2.1rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand svg {
  width: 34px;
  height: 27px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  .site-nav a:hover {
    color: var(--primary);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: auto;
}

.site-nav + .header-actions {
  margin-inline-start: 0;
}

.lang-switch {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 62ch;
  margin-block-end: clamp(2rem, 1.5rem + 1.5vw, 3.25rem);
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-block-end: 1rem;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--primary);
  }
}

.section-head p {
  font-size: var(--step-1);
  color: var(--text-muted);
  margin: 0;
}

.bg-alt {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--night) 0%,
    #10202e 55%,
    var(--primary-dark) 160%
  );
  color: #eef3f7;
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-operations.svg");
  background-size: 620px;
  opacity: 0.1;
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: #ffffff;
  margin-block-end: 1.1rem;
  text-wrap: balance;
}

.hero__lede {
  font-size: var(--step-1);
  color: #c3d2de;
  max-width: 54ch;
  margin-block-end: 2rem;
}

.hero .eyebrow {
  background: rgba(0, 183, 163, 0.18);
  color: #5eead4;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-end: 2rem;
}

.hero .btn--ghost {
  color: #eef3f7;
  border-color: rgba(238, 243, 247, 0.28);
}

.hero .btn--ghost:hover {
  border-color: var(--primary);
  background: rgba(0, 183, 163, 0.14);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--step--1);
  color: #9fb3c4;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Product mock */
.mock {
  background: rgba(12, 21, 32, 0.55);
  border: 1px solid rgba(238, 243, 247, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-block-end: 1px solid rgba(238, 243, 247, 0.12);
  background: rgba(238, 243, 247, 0.04);
}

.mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(238, 243, 247, 0.22);
}

.mock__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.1rem;
}

.mock__tile {
  background: rgba(238, 243, 247, 0.06);
  border: 1px solid rgba(238, 243, 247, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.mock__tile span {
  display: block;
  font-size: 0.75rem;
  color: #9fb3c4;
  margin-block-end: 0.3rem;
}

.mock__tile strong {
  font-size: 1.4rem;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.mock__tile--wide {
  grid-column: 1 / -1;
}

.mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 62px;
  margin-block-start: 0.6rem;
}

.mock__bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), rgba(0, 183, 163, 0.25));
  border-radius: 3px 3px 0 0;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border-block-end: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  .stat strong {
    color: var(--primary);
  }
}

.stat span {
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-block-end: 0.4rem;
}

.card p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.7;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-block-end: 1rem;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

@media (prefers-color-scheme: dark) {
  .card__icon {
    color: var(--primary);
  }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #04231f;
  font-weight: 700;
  font-size: 1.05rem;
  margin-block-end: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-block-end: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Feature list (technical readiness)
   -------------------------------------------------------------------------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-block-start: 0.28rem;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-block-end: 0.15rem;
}

.feature-list span {
  color: var(--text-soft);
  font-size: var(--step--1);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.panel {
  background: linear-gradient(150deg, var(--night), var(--primary-dark) 210%);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  color: #eef3f7;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-network.svg");
  background-size: 460px;
  opacity: 0.12;
}

.panel > * {
  position: relative;
}

.panel h3 {
  color: #fff;
}

.panel p {
  color: #c3d2de;
  font-size: var(--step--1);
}

.panel dl {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.panel dt {
  font-weight: 700;
  color: var(--accent);
  font-size: var(--step--1);
}

.panel dd {
  margin: 0.15rem 0 0;
  color: #b6c3d0;
  font-size: var(--step--1);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-block-end: 0.75rem;
  overflow: hidden;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq .faq__answer {
  padding: 0 1.3rem 1.2rem;
}

.faq .faq__answer p {
  margin: 0;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(140deg, var(--primary-dark), var(--night) 120%);
  color: #eef3f7;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-network.svg");
  background-size: 520px;
  opacity: 0.1;
}

.cta-band > .wrap {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

.cta-band p {
  color: #c3d2de;
  max-width: 58ch;
  margin-inline: auto;
  margin-block-end: 2rem;
  font-size: var(--step-1);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.cta-band .btn--ghost {
  color: #eef3f7;
  border-color: rgba(238, 243, 247, 0.3);
}

.cta-band .btn--ghost:hover {
  background: rgba(238, 243, 247, 0.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  border-block-start: 1px solid var(--border);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem;
  font-size: var(--step--1);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  margin-block-end: 2.5rem;
}

.site-footer p {
  font-size: var(--step--1);
  max-width: 40ch;
}

.site-footer h4 {
  font-size: var(--step--1);
  margin: 0 0 0.85rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer ul a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .site-footer ul a:hover {
    color: var(--primary);
  }
}

.site-footer__bottom {
  border-block-start: 1px solid var(--border);
  padding-block-start: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
