:root {
  color-scheme: dark;
  --bg: #06142e;
  --bg-deep: #040d1f;
  --surface: #0a2043;
  --surface-2: #102b54;
  --track: #1b4173;
  --outline: #2a578c;
  --border: rgba(169, 196, 228, 0.14);
  --cyan: #63d9ff;
  --ice: #c7f6ff;
  --text: #f2fbff;
  --muted: #a9c4e4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1040px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(
      900px 540px at 80% -10%,
      rgba(99, 217, 255, 0.11),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* Header */
.site-header {
  padding-block: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(16, 43, 84, 0.65);
  color: var(--text);
}

.nav .nav-pill:hover {
  border-color: var(--cyan);
  color: var(--ice);
}

/* Main */
main {
  flex: 1;
}

/* Hero */
.hero {
  padding-block: clamp(28px, 6vw, 64px) clamp(40px, 7vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease,
    border-color 140ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--ice) 0%, var(--cyan) 100%);
  color: #05254a;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-secondary {
  background: rgba(16, 43, 84, 0.45);
  border-color: var(--outline);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--ice);
}

.meta-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Interactive Phone Preview */
.device-wrap {
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 100%;
  max-width: 344px;
  padding: 22px 18px 18px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #091d3e 0%, #06142e 100%);
  box-shadow: 0 28px 80px rgba(2, 8, 22, 0.65);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(16, 43, 84, 0.55);
  color: var(--ice);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.status-dot.running {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.dial-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 18px;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.dial-stage.is-running {
  cursor: default;
}

.dial-stage:active:not(.is-running) {
  cursor: grabbing;
}

.dial-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dial-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dial-clock {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.dial-label {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ice);
}

.presets-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.preset-btn {
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: rgba(26, 55, 96, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.preset-btn span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.preset-btn[aria-pressed="true"] {
  border-width: 2px;
  border-color: var(--ice);
  background: #0c467d;
}

.action-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.action-btn.start {
  background: var(--ice);
  color: #05254a;
}

.action-btn.start:disabled {
  background: rgba(74, 114, 153, 0.24);
  color: var(--muted);
  cursor: not-allowed;
}

.action-btn.pause {
  background: transparent;
  border-color: var(--ice);
  color: var(--text);
}

.behavior-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(26, 55, 96, 0.25);
  border: 1px solid var(--border);
}

.behavior-note small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.behavior-note strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

/* Capabilities Strip */
.capabilities {
  padding-block: 36px 64px;
  border-top: 1px solid var(--border);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cap-item h2 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cap-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 217, 255, 0.1);
  border: 1px solid rgba(99, 217, 255, 0.22);
  color: var(--ice);
}

/* Privacy Policy Page */
.policy-main {
  padding-block: clamp(28px, 5vw, 52px) 72px;
}

.policy-wrap {
  max-width: 720px;
}

.policy-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.policy-meta {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.policy-summary {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 217, 255, 0.25);
  background: rgba(16, 43, 84, 0.45);
  margin-bottom: 36px;
  font-size: 0.975rem;
}

.policy-summary strong {
  color: var(--ice);
}

.policy-section {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.policy-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section li strong,
.policy-section code {
  color: var(--text);
}

.policy-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(16, 43, 84, 0.7);
}

.policy-section a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 140ms ease;
}

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

/* Responsive */
@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.975rem;
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .nav .nav-pill {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .cta-group .btn {
    width: 100%;
  }
}
