:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: #070707;
  background: #FFFFFF;
  line-height: 1.7;
}

h1, h2, h3, .font-display {
  font-family: 'Roboto Slab', serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tracking-tightish { letter-spacing: -0.015em; }

:focus-visible {
  outline: 3px solid #FF5722;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #FFD5BE;
  color: #070707;
}

/* Grain texture */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Walnut-icon watermark behind screenshots (signature element) */
.icon-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Soft ambient corner glows */
.ambient-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Buttons */
.btn-primary {
  background: #070707;
  color: #fff;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(7,7,7,0.08), 0 10px 24px -8px rgba(7,7,7,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 2px 4px rgba(7,7,7,0.1), 0 16px 32px -8px rgba(7,7,7,0.4);
  background: #1a1a1a;
}
.btn-primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 2px rgba(7,7,7,0.1);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: transform 0.35s var(--ease-spring), background-color 0.3s ease, border-color 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0) scale(0.98); }

.btn-blue {
  background: #4E8C9F;
  color: #fff;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(7,7,7,0.08), 0 10px 24px -8px rgba(78,140,159,0.45);
}
.btn-blue:hover {
  transform: translateY(-2px) scale(1.015);
  background: #457c8d;
  box-shadow: 0 2px 4px rgba(7,7,7,0.1), 0 16px 32px -8px rgba(78,140,159,0.5);
}
.btn-blue:active { transform: translateY(0) scale(0.985); }

button:disabled, a.btn-primary[aria-disabled="true"], .btn-blue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* Nav link underline grow */
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 1.5px;
  background: #FF5722;
  transition: width 0.3s var(--ease-spring);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.is-current { color: #fff; }
.nav-link.is-current::after { width: 100%; }

.footer-link {
  position: relative;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s ease;
}
.footer-link:hover { color: #fff; }

/* Cards */
.card-elevated {
  background: #fff;
  box-shadow: 0 1px 2px rgba(7,7,7,0.04), 0 12px 32px -12px rgba(78,140,159,0.18), 0 24px 48px -24px rgba(7,7,7,0.12);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}
.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(7,7,7,0.06), 0 20px 40px -12px rgba(78,140,159,0.24), 0 32px 64px -24px rgba(7,7,7,0.16);
}

.phone-shot {
  filter: drop-shadow(0 20px 24px rgba(7,7,7,0.16)) drop-shadow(0 8px 8px rgba(7,7,7,0.08));
  transition: transform 0.5s var(--ease-spring);
}
.phone-shot:hover { transform: translateY(-6px) rotate(0deg) !important; }

.phone-bezel {
  background: #070707;
  border-radius: 2.75rem;
  padding: 0.6rem;
  filter: drop-shadow(0 20px 24px rgba(7,7,7,0.2)) drop-shadow(0 8px 8px rgba(7,7,7,0.1));
}

.store-btn-custom {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(7,7,7,0.08), 0 8px 20px -8px rgba(7,7,7,0.35);
}
.store-btn-custom:hover {
  transform: translateY(-2px) scale(1.015);
  background-color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(7,7,7,0.1), 0 14px 28px -8px rgba(7,7,7,0.4);
}
.store-btn-custom:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 2px rgba(7,7,7,0.1);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-spring);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .phone-shot, .btn-primary, .btn-outline, .btn-blue, .card-elevated, .store-btn-custom { transition: none; }
}

.tag-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.video-ctrl-btn {
  background: rgba(7,7,7,0.55);
  backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease-spring), background-color 0.25s ease;
}
.video-ctrl-btn:hover { background: rgba(7,7,7,0.75); transform: scale(1.08); }
.video-ctrl-btn:active { transform: scale(0.95); }

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: -0.02em;
}

input::placeholder, textarea::placeholder { color: rgba(7,7,7,0.4); }

.form-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.form-input:hover {
  border-color: rgba(7,7,7,0.35);
}
.form-input:focus {
  border-color: #070707;
  box-shadow: 0 0 0 4px rgba(7,7,7,0.08);
}

.line-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(7,7,7,0.15);
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.line-input:hover { border-color: rgba(7,7,7,0.3); }
.line-input:focus { border-color: #070707; outline: none; }

/* Boxed form fields (contact / feedback forms) */
.form-box {
  background: #fff;
  border: 1.5px solid rgba(7,7,7,0.18);
  border-radius: 0.65rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-box:hover { border-color: rgba(7,7,7,0.4); }
.form-box:focus {
  border-color: #070707;
  box-shadow: 0 0 0 4px rgba(7,7,7,0.08);
  outline: none;
}

.consent-checkbox {
  accent-color: #4E8C9F;
  transition: transform 0.2s var(--ease-spring);
}
.consent-checkbox:hover { transform: scale(1.08); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring);
}
.mobile-menu.open { max-height: 320px; }

/* Legal / long-form content pages */
.legal-prose h2 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: #070707;
}
.legal-prose p {
  color: rgba(7,7,7,0.7);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.legal-prose ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: rgba(7,7,7,0.7);
}
.legal-prose li { margin-bottom: 0.4rem; line-height: 1.7; }
.legal-prose a {
  color: #4E8C9F;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose a:hover { color: #FF5722; }
.legal-prose strong { color: #070707; font-weight: 700; }
