/* ============================================
   Bikmind — Premium Company Website
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #1CCCCC;
  --color-secondary: #FCCC60;
  --color-bg: #F8FBFC;
  --color-surface: #FFFFFF;
  --color-text: #06121B;
  --color-text-inverse: #FFFFFF;
  --color-text-secondary: #6C7A89;
  --color-border: rgba(6, 18, 27, 0.08);
  --color-border-subtle: rgba(6, 18, 27, 0.05);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-padding: clamp(80px, 12vw, 140px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-theme: background-color 0.4s var(--ease-in-out),
                      color 0.4s var(--ease-in-out),
                      border-color 0.4s var(--ease-in-out),
                      box-shadow 0.4s var(--ease-in-out);

  --shadow-sm: 0 1px 2px rgba(6, 18, 27, 0.04);
  --shadow-md: 0 4px 24px rgba(6, 18, 27, 0.06);
  --shadow-lg: 0 12px 48px rgba(6, 18, 27, 0.08);
  --glow-primary: 0 0 60px rgba(28, 204, 204, 0.15);
}

[data-theme="dark"] {
  --color-bg: #06121B;
  --color-surface: #0D1F2B;
  --color-text: #FFFFFF;
  --color-text-inverse: #06121B;
  --color-text-secondary: #6C7A89;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(255, 255, 255, 0.04);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 80px rgba(28, 204, 204, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: var(--transition-theme);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

::selection {
  background: rgba(28, 204, 204, 0.25);
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__header {
  max-width: 640px;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Ambient Effects --- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

[data-theme="dark"] .noise {
  opacity: 0.04;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  transition: opacity 0.6s var(--ease-in-out);
}

.ambient-glow--primary {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: rgba(28, 204, 204, 0.08);
}

.ambient-glow--secondary {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -150px;
  background: rgba(252, 204, 96, 0.05);
}

[data-theme="light"] .ambient-glow--primary {
  background: rgba(28, 204, 204, 0.06);
}

[data-theme="light"] .ambient-glow--secondary {
  background: rgba(252, 204, 96, 0.04);
}

/* --- Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color 0.4s var(--ease-in-out),
              backdrop-filter 0.4s var(--ease-in-out),
              border-color 0.4s var(--ease-in-out),
              box-shadow 0.4s var(--ease-in-out);
}

.header--scrolled {
  background: rgba(var(--header-bg-rgb, 6, 18, 27), 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .header--scrolled {
  --header-bg-rgb: 248, 251, 252;
}

[data-theme="dark"] .header--scrolled {
  --header-bg-rgb: 6, 18, 27;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  z-index: 1001;
  transition: opacity 0.2s;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  color: var(--color-text);
}

.nav__toggle-icon {
  width: 20px;
  height: 20px;
}

.nav__toggle-icon--close {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: var(--transition-theme), transform 0.2s;
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle__icon--light {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--dark {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn__icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--color-primary);
  color: #06121B;
  box-shadow: 0 0 0 0 rgba(28, 204, 204, 0);
}

.btn--primary:hover {
  box-shadow: var(--glow-primary), 0 4px 16px rgba(28, 204, 204, 0.25);
  transform: translateY(-1px);
}

.btn--primary:hover .btn__icon {
  transform: translate(2px, -2px);
}

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

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(28, 204, 204, 0.05);
}

.btn--glow:hover {
  box-shadow: var(--glow-primary), 0 4px 24px rgba(28, 204, 204, 0.3);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(60px, 10vw, 100px);
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 28px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: meshRotate 60s linear infinite;
}

@keyframes meshRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: var(--transition-theme);
}

.hero__shape--1 {
  width: 48px;
  height: 48px;
  top: 12%;
  right: 8%;
  animation: float 8s ease-in-out infinite;
  border-color: rgba(28, 204, 204, 0.2);
}

.hero__shape--2 {
  width: 32px;
  height: 32px;
  bottom: 20%;
  left: 5%;
  border-radius: 8px;
  animation: float 6s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.hero__shape--3 {
  width: 64px;
  height: 64px;
  top: 55%;
  right: 15%;
  border-radius: 16px;
  animation: float 10s ease-in-out infinite;
  animation-delay: -4s;
  background: rgba(28, 204, 204, 0.05);
  border-color: rgba(28, 204, 204, 0.15);
}

.hero__shape--4 {
  width: 24px;
  height: 24px;
  top: 30%;
  left: 15%;
  border-radius: 6px;
  animation: float 7s ease-in-out infinite reverse;
  animation-delay: -1s;
  background: rgba(252, 204, 96, 0.08);
  border-color: rgba(252, 204, 96, 0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

.hero__glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(28, 204, 204, 0.1);
  animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Cards (About) --- */
.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: clamp(28px, 4vw, 40px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: var(--transition-theme), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card--lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 204, 204, 0.2);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(28, 204, 204, 0.1);
  color: var(--color-primary);
  margin-bottom: 24px;
}

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

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Products --- */
.products {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-theme);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  transition: var(--transition-theme);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  margin-bottom: 20px;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.product-card__tagline {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.product-card__description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}

.product-card__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 36px;
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

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

.product-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card__visual-inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(28, 204, 204, 0.15);
  animation: meshRotate 40s linear infinite;
}

.product-card__orbit--2 {
  inset: 15%;
  animation-direction: reverse;
  animation-duration: 30s;
}

.product-card__graphic {
  width: 80%;
  height: 80%;
  color: var(--color-text);
}

/* --- Why Bikmind --- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  padding: clamp(32px, 4vw, 44px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-theme), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(28, 204, 204, 0.15);
}

.why-card__number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(28, 204, 204, 0.08);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.why-card__icon svg {
  width: 20px;
  height: 20px;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.why-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Values --- */
.values__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.values__item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 36px) 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-theme);
}

.values__item:first-child {
  border-top: 1px solid var(--color-border);
}

.values__label {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  min-width: clamp(160px, 25vw, 280px);
  transition: color 0.3s;
}

.values__item:hover .values__label {
  color: var(--color-primary);
}

.values__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), transparent);
  transition: background 0.4s var(--ease-out);
}

.values__item:hover .values__line {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* --- Contact --- */
.contact__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: var(--transition-theme);
}

.contact__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact__email {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

.contact__email:hover {
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  padding: clamp(60px, 8vw, 80px) 0 0;
  border-top: 1px solid var(--color-border);
  transition: var(--transition-theme);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 60px);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer__nav {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  justify-content: flex-end;
}

.footer__nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--color-text);
}

.footer__nav a.is-active {
  color: var(--color-primary);
}

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--visible {
  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; }

/* --- Mobile Nav Lock --- */
html.nav-open,
body.nav-open {
  overflow: hidden;
}

body.nav-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.1s linear;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: clamp(20px, 4vw, 32px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-out),
              var(--transition-theme);
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Legal Pages --- */
.page-legal main {
  padding-top: var(--nav-height);
}

.legal {
  padding: clamp(48px, 8vw, 80px) 0 var(--section-padding);
}

.legal__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 900px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  justify-content: center;
}

.legal__toc {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  max-height: calc(100vh - var(--nav-height) - 64px);
  overflow-y: auto;
  padding-right: 8px;
}

.legal__toc-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.legal__toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal__toc-link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.legal__toc-link:hover {
  color: var(--color-text);
  background: rgba(28, 204, 204, 0.05);
}

.legal__toc-link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(28, 204, 204, 0.08);
}

.legal__content {
  max-width: 900px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  opacity: 0.4;
  user-select: none;
}

.breadcrumb__current {
  color: var(--color-text);
}

.legal__hero {
  margin-bottom: clamp(40px, 6vw, 56px);
}

.legal__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.legal__updated time {
  color: var(--color-text);
  font-weight: 500;
}

.legal__intro {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-top: 24px;
  max-width: 720px;
}

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

.legal__section {
  padding: clamp(28px, 4vw, 36px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: var(--transition-theme), border-color 0.3s;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal__section:hover {
  border-color: rgba(28, 204, 204, 0.15);
}

.legal__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal__section p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul,
.legal__section ol {
  margin: 0 0 16px 1.25rem;
  color: var(--color-text-secondary);
}

.legal__section li {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.legal__section li:last-child {
  margin-bottom: 0;
}

.legal__section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal__section a:hover {
  opacity: 0.85;
}

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

.legal__mobile-toc {
  display: none;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.legal__mobile-toc summary {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.legal__mobile-toc .legal__toc-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* --- Mobile Navigation --- */
.nav--open .nav__toggle-icon--open {
  display: none;
}

.nav--open .nav__toggle-icon--close {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__visual-frame {
    max-width: 360px;
  }

  .about__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__visual {
    order: -1;
  }

  .product-card__visual-inner {
    max-width: 280px;
  }

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

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

  .footer__nav {
    justify-content: flex-start;
  }
}

.header--menu-open {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px clamp(20px, 5vw, 40px) 48px;
    gap: 32px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), visibility 0.35s, transform 0.35s var(--ease-out);
    z-index: 999;
  }

  .nav--open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__links {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    font-size: 1.0625rem;
    padding: 12px 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--active {
    color: var(--color-primary);
  }

  .nav__actions {
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
  }

  .nav__cta {
    width: 100%;
  }

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

  .legal__toc {
    display: none;
  }

  .legal__mobile-toc {
    display: block;
  }

  .hero__scroll-hint {
    display: none;
  }

  .product-card__features {
    grid-template-columns: 1fr;
  }

  .values__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .values__line {
    width: 100%;
  }

  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
