/* ========================================
   Ustbilis — Apple-Inspired Design System
   Vanilla CSS | No Framework
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Brand gradients */
  --brand-gradient-blue: linear-gradient(
    135deg,
    #0071e3 0%,
    #2997ff 50%,
    #64d2ff 100%
  );
  --brand-gradient-purple: linear-gradient(
    135deg,
    #5e5ce6 0%,
    #bf5af2 50%,
    #ff6482 100%
  );

  /* Apple-style palette */
  --color-black: #1d1d1f;
  --color-grey-dark: #6e6e73;
  --color-grey-mid: #86868b;
  --color-grey-light: #d2d2d7;
  --color-grey-bg: #f5f5f7;
  --color-white: #fbfbfd;
  --color-pure-white: #ffffff;
  --color-blue: #0071e3;
  --color-blue-hover: #0077ed;
  --color-blue-light: #2997ff;

  /* Semantic */
  --color-text: var(--color-black);
  --color-text-secondary: var(--color-grey-dark);
  --color-text-tertiary: var(--color-grey-mid);
  --color-surface: var(--color-pure-white);
  --color-surface-alt: var(--color-grey-bg);
  --color-surface-dark: #000000;
  --color-nav-bg: rgba(251, 251, 253, 0.8);
  --color-nav-border: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", sans-serif;

  /* Spacing */
  --nav-height: 48px;
  --section-padding: 120px;
  --content-width: 980px;
  --content-width-wide: 1200px;

  /* Radius */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Font fallback — reduce layout shift while Inter loads */
  --font-fallback:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.4s;
}

/* --- Dark theme --- */
[data-theme="dark"] {
  --color-text: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-tertiary: #86868b;
  --color-surface: #000000;
  --color-surface-alt: #1d1d1f;
  --color-surface-dark: #000000;
  --color-nav-bg: rgba(29, 29, 31, 0.8);
  --color-nav-border: rgba(255, 255, 255, 0.08);
  --color-grey-bg: #1d1d1f;
  --color-grey-light: #38383a;
  --color-pure-white: #000000;
}

/* Dark mode contrast overrides */
[data-theme="dark"] .tile--dark {
  background: #2c2c2e;
}

[data-theme="dark"] .tile::after {
  opacity: 0;
}

[data-theme="dark"] .value-card::before {
  opacity: 0;
}

[data-theme="dark"] .showcase--dark,
[data-theme="dark"] .content-block--dark,
[data-theme="dark"] .process-section {
  background: #1d1d1f;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  letter-spacing: -0.022em;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

a {
  color: #2997ff;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: var(--font);
}

/* --- Layout --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide {
  max-width: var(--content-width-wide);
}

/* ========================================
   NAVIGATION — Apple style thin, frosted
   ======================================== */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
  z-index: 9999;
  transition: background var(--duration) var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5e5ce6, #bf5af2, #ff6482);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.nav.nav--scrolled::after {
  opacity: 1;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-width);
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-logo:hover {
  text-decoration: none;
}

.logo-mark-img {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* Language switcher */
.lang-switch {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
  padding: 4px 8px;
  border: 1px solid var(--color-nav-border);
  border-radius: 6px;
  line-height: 1;
}

.lang-switch:hover {
  opacity: 1;
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  padding: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--color-text);
}

.theme-toggle:hover {
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}
.nav-toggle span:nth-child(2) {
  top: 18px;
}
.nav-toggle span:nth-child(3) {
  top: 23px;
}

.nav-toggle.active span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ========================================
   HERO — Full viewport, massive type
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 22px 80px;
  background: var(--color-surface);
  position: relative;
  transition: background var(--duration) var(--ease);
}

/* Giant watermark asterisk */
.hero::after,
body:has(.page-hero)::after {
  content: "";
  position: absolute;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%230071e3'/%3E%3Cstop offset='100%25' stop-color='%232997ff'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%235e5ce6'/%3E%3Cstop offset='100%25' stop-color='%23bf5af2'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23bf5af2'/%3E%3Cstop offset='100%25' stop-color='%23ff6482'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(32,32)'%3E%3Crect x='-3' y='-22' width='6' height='44' rx='3' fill='url(%23a)'/%3E%3Crect x='-3' y='-22' width='6' height='44' rx='3' transform='rotate(60)' fill='url(%23b)'/%3E%3Crect x='-3' y='-22' width='6' height='44' rx='3' transform='rotate(120)' fill='url(%23c)'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  left: -20%;
  top: -25%;
  transform: rotate(-10deg);
  width: min(220vh, 180vw);
  height: min(220vh, 180vw);
}

/* Sub-pages — left side */
body:has(.page-hero)::after {
  left: -10%;
  top: 5vh;
  transform: rotate(-10deg);
  width: min(90vh, 70vw);
  height: min(90vh, 70vw);
}

/* Contact page — same as homepage */
body:has(.page-hero--contact)::after {
  left: -20%;
  top: -25%;
  width: min(220vh, 180vw);
  height: min(220vh, 180vw);
  position: fixed;
}

[data-theme="dark"] .hero::after,
[data-theme="dark"] body::after {
  opacity: 0.12;
}

.hero-overline {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #5e5ce6, #bf5af2, #ff6482);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 900px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hero-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.link-cta {
  font-size: 21px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: gap 0.3s var(--ease);
  background: linear-gradient(90deg, #0071e3, #2997ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link-cta:hover {
  text-decoration: none;
  gap: 10px;
}

.link-cta .arrow {
  font-size: 16px;
  transition: transform 0.3s var(--ease);
  background: none;
  -webkit-text-fill-color: #2997ff;
}

.link-cta:hover .arrow {
  transform: translateX(3px);
}

/* ========================================
   SECTION — Full-bleed showcase panels
   ======================================== */
.showcase {
  padding: var(--section-padding) 22px;
  text-align: center;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.showcase--dark {
  background: #000;
  color: #f5f5f7;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.showcase--dark .showcase-eyebrow {
  color: var(--color-grey-mid);
  transition: color var(--duration) var(--ease);
}

.showcase--dark .showcase-desc {
  color: #a1a1a6;
  transition: color var(--duration) var(--ease);
}

.showcase--alt {
  background: var(--color-surface-alt);
}

.showcase-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.showcase-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 800px;
  margin: 0 auto 20px;
}

.showcase-desc {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.4;
}

.showcase-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ========================================
   TILE GRID — Apple product grid
   ======================================== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.tile {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.5s var(--ease),
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.tile:hover {
  transform: scale(1.01);
}

.tile--dark {
  background: #1d1d1f;
  color: #f5f5f7;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.tile--dark .tile-desc {
  color: #a1a1a6;
  transition: color var(--duration) var(--ease);
}

.tile--full {
  grid-column: 1 / -1;
  min-height: 500px;
  padding: 80px 40px;
}

/* tile-icon removed — Apple style: no icons, pure typography */

.tile-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}

.tile--dark .tile-eyebrow {
  color: var(--color-grey-mid);
}

.tile-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.tile-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.52;
}

.tile-link {
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: linear-gradient(90deg, #0071e3, #2997ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tile-link .arrow {
  background: none;
  -webkit-text-fill-color: #2997ff;
}

.tile-link:hover {
  text-decoration: none;
  gap: 8px;
}

/* ========================================
   STATS — Minimal counters
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 22px;
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat-value {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-text-tertiary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

/* ========================================
   PAGE HEADER — Sub-pages
   ======================================== */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 80px) 22px 80px;
  background: var(--color-surface);
  position: relative;
  transition: background var(--duration) var(--ease);
}

.page-hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: clamp(19px, 2.5vw, 28px);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.35;
}

/* ========================================
   CONTENT SECTIONS — About page style
   ======================================== */
.content-block {
  padding: 120px 22px;
}

.content-block--alt {
  background: var(--color-surface-alt);
}

.content-block--dark {
  background: #000;
  color: #f5f5f7;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.content-block--dark .content-text p {
  color: #a1a1a6;
  transition: color var(--duration) var(--ease);
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.content-text h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.content-text p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.58;
  margin-bottom: 16px;
}

.content-visual {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}

.content-block--dark .content-visual:not([class*="gradient"]) {
  background: #2c2c2e;
}

.content-visual.content-visual--gradient-blue {
  background: var(--brand-gradient-blue);
}

.content-visual.content-visual--gradient-purple {
  background: var(--brand-gradient-purple);
}

/* ========================================
   VALUES GRID — Apple style 3-col
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.value-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition:
    transform 0.5s var(--ease),
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.value-card:hover {
  transform: scale(1.02);
}

.value-svg {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: #2997ff;
}

.value-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.53;
  max-width: 300px;
  margin: 0 auto;
}

/* ========================================
   PROCESS STEPS — Horizontal flow
   ======================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(
    180deg,
    var(--color-blue) 0%,
    var(--color-blue-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.47;
}

/* Process section always renders on black background — force readable colors */
.process-section {
  padding: 80px 0 100px;
  background: #000;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.process-section .process-title {
  color: #f5f5f7;
  transition: color var(--duration) var(--ease);
}

.process-section .process-desc {
  color: #a1a1a6;
  transition: color var(--duration) var(--ease);
}

/* ========================================
   CONTACT FORM — Minimal Apple style
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--content-width);
  margin: 0 auto;
}

.contact-info h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.58;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 17px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Inline validation */
.field-invalid {
  border-color: #ff453a !important;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.1) !important;
}

.field-valid {
  border-color: #30d158 !important;
}

.field-error {
  font-size: 13px;
  color: #ff453a;
  margin-top: 6px;
  line-height: 1.3;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-grey-mid);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(
    135deg,
    #0071e3,
    #2997ff,
    #64d2ff,
    #5e5ce6,
    #bf5af2
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition:
    background-position 0.5s var(--ease),
    transform 0.2s var(--ease);
  min-width: 200px;
}

.btn-submit:hover {
  background-position: 100% 50%;
}

.btn-submit:active {
  transform: scale(0.98);
}

.form-result {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 21px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: var(--section-padding) 22px;
  text-align: center;
  background: var(--color-surface);
}

.cta-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(
    135deg,
    #0071e3,
    #2997ff,
    #64d2ff,
    #5e5ce6,
    #bf5af2
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  font-family: var(--font);
  border: none;
  border-radius: 980px;
  cursor: pointer;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-position 0.5s var(--ease),
    transform 0.2s var(--ease);
}

.btn-cta:hover {
  background-position: 100% 50%;
  text-decoration: none;
  color: #fff;
}

.btn-cta:active {
  transform: scale(0.98);
}

/* ========================================
   FOOTER — Apple dense footer
   ======================================== */
.footer {
  background: var(--color-surface-alt);
  padding: 20px 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: none;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071e3, #2997ff, #64d2ff);
  opacity: 0.7;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-nav-border);
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-brand-name .logo-mark-img {
  width: 28px;
  height: 28px;
}

.footer-brand-desc {
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  max-width: 240px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 2px 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a,
.footer-cookie-btn {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-cookie-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  letter-spacing: inherit;
}

.footer-legal a:hover,
.footer-cookie-btn:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ========================================
   BRAND GRADIENT ACCENTS — Card borders
   ======================================== */

/* Tile gradient border on hover */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #0071e3, #2997ff, #64d2ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.tile:hover::after {
  opacity: 1;
}

/* Dark tiles get purple gradient border */
.tile--dark::after {
  background: linear-gradient(135deg, #5e5ce6, #bf5af2, #ff6482);
}

/* Value cards gradient border on hover */
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #5e5ce6, #bf5af2, #ff6482);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.value-card {
  position: relative;
  overflow: hidden;
}

.value-card:hover::before {
  opacity: 1;
}

/* ========================================
   THEME TRANSITIONS — Consistent timing
   ======================================== */
.showcase,
.showcase--dark,
.content-block,
.content-block--alt,
.content-block--dark,
.cta-section,
.footer,
.process-section,
.nav-links {
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1068px) {
  .tile-grid {
    gap: 12px;
  }
  .tile {
    padding: 44px 32px;
    min-height: 360px;
  }
  .values-grid {
    gap: 12px;
  }
  .value-card {
    padding: 36px 24px;
  }
  .process-grid {
    gap: 24px;
  }
  .content-row {
    gap: 48px;
  }
  .contact-grid {
    gap: 48px;
  }
  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --nav-height: 48px;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    background: linear-gradient(
      to bottom right,
      #ffffff 30%,
      #e8e5f5 65%,
      #d6e6fa 85%,
      #cdd4f7 100%
    ) !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    gap: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s var(--ease),
      visibility 0.35s var(--ease);
  }

  [data-theme="dark"] .nav-links {
    background: linear-gradient(
      to bottom right,
      #000000 30%,
      #1a1530 65%,
      #0f1a2e 85%,
      #161233 100%
    ) !important;
  }

  .nav-links.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  /* Show nav gradient line when menu is open */
  .nav-links.open ~ div .nav-toggle {
    /* handled via JS */
  }

  .nav-links a {
    font-size: 32px;
    font-weight: 600;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-nav-border);
    opacity: 0;
    transform: translateY(15px);
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--color-text) !important;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }

  .nav-links.open a:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
  }
  .nav-links.open a:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
  .nav-links.open a:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }
  .nav-links.open a:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .nav-toggle {
    display: block;
  }

  /* Grids */
  .tile-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .tile {
    min-height: 320px;
    padding: 40px 24px;
  }
  .tile--full {
    min-height: 360px;
    padding: 48px 24px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-row--reverse .content-visual {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 40px 22px;
  }

  .stat {
    padding: 16px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  body {
    font-size: 15px;
  }

  .hero {
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }

  .page-hero {
    padding: calc(var(--nav-height) + 60px) 0 60px;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 280px;
  }
}

/* ========================================
   COOKIE CONSENT MODAL — KVKK/GDPR
   ======================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  width: 100%;
  max-width: 560px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(32px) scale(0.97);
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s var(--ease);
}

[data-theme="dark"] .cookie-modal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.cookie-overlay.visible .cookie-modal {
  transform: translateY(0) scale(1);
}

.cookie-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.cookie-modal-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cookie-modal-desc a {
  color: var(--color-blue);
  text-decoration: none;
}

.cookie-modal-desc a:hover {
  text-decoration: underline;
}

.cookie-categories {
  border: 1px solid var(--color-nav-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-surface-alt);
  gap: 16px;
}

.cookie-category + .cookie-category {
  border-top: 1px solid var(--color-nav-border);
}

.cookie-category-info {
  flex: 1;
  min-width: 0;
}

.cookie-category-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-always-on {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-tertiary);
  background: var(--color-grey-light);
  padding: 1px 8px;
  border-radius: 980px;
  letter-spacing: 0;
  flex-shrink: 0;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

[data-theme="dark"] .cookie-always-on {
  background: #2d2d2f;
}

.cookie-category-desc {
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.45;
}

/* iOS-style toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-grey-light);
  border-radius: 13px;
  transition: background 0.3s var(--ease);
  cursor: pointer;
}

[data-theme="dark"] .cookie-toggle-track {
  background: #3a3a3c;
}

.cookie-toggle input:checked ~ .cookie-toggle-track {
  background: #30d158;
}

.cookie-toggle input:disabled ~ .cookie-toggle-track {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}

.cookie-toggle input:checked ~ .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(18px);
}

/* Modal action buttons */
.cookie-modal-actions {
  display: flex;
  gap: 8px;
}

.cookie-modal-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.cookie-modal-btn:active {
  transform: scale(0.97);
}

.cookie-modal-btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.cookie-toggle input:focus-visible ~ .cookie-toggle-track {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.cookie-modal-btn--accept {
  background: linear-gradient(
    135deg,
    #0071e3,
    #2997ff,
    #64d2ff,
    #5e5ce6,
    #bf5af2
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  transition: background-position 0.5s var(--ease);
}

.cookie-modal-btn--accept:hover {
  background-position: 100% 50%;
}

.cookie-modal-btn--reject {
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

.cookie-modal-btn--reject:hover {
  background: var(--color-grey-light);
  color: var(--color-text);
}

[data-theme="dark"] .cookie-modal-btn--reject:hover {
  background: #2d2d2f;
}

.cookie-modal-btn--save {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-grey-light);
}

.cookie-modal-btn--save:hover {
  border-color: var(--color-blue);
  background: rgba(0, 113, 227, 0.06);
}

[data-theme="dark"] .cookie-modal-btn--save {
  border-color: #3a3a3c;
}

[data-theme="dark"] .cookie-modal-btn--save:hover {
  border-color: var(--color-blue);
  background: rgba(0, 113, 227, 0.1);
}

@media (max-width: 600px) {
  .cookie-overlay {
    padding: 0 16px 20px;
  }

  .cookie-modal {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-btn--save {
    order: -1;
  }
}

/* ========================================
   LEGAL PAGE — Privacy Policy
   ======================================== */
.page-hero--sm {
  min-height: 30vh;
}

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 22px 120px;
}

.legal-date {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-bottom: 48px;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--color-nav-border);
  margin: 0 0 48px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal-section p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-tertiary);
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-section code {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, monospace;
  font-size: 13px;
  background: var(--color-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text-secondary);
}

.legal-section a {
  color: var(--color-blue);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 60px 22px 80px;
  }
}
