/* Apple Design System - iPhone 18 Pro */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0c;
  --bg-card: #121215;
  --bg-card-hover: #18181d;
  --border-subtle: #242429;
  --border-active: #50505a;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #55555c;
  --accent-blue: #2997ff;
  --accent-blue-hover: #0077ed;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Navigation */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-btn {
  background: var(--accent-blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 980px;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--accent-blue-hover);
}

/* Hero Section */
.hero-section {
  padding: 72px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-content {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow {
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 40%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(17px, 3vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 980px;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  text-decoration: underline;
}

.hero-price {
  font-size: 13px;
  color: var(--text-muted);
}

/* Device Showcase Mockup */
.device-showcase {
  margin-top: 56px;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.device-body {
  width: 290px;
  height: 570px;
  border-radius: 48px;
  background: #151518;
  border: 4px solid #4a4a50;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(41, 151, 255, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  transition: var(--transition-smooth);
}

.device-body.color-natural {
  border-color: #797672;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(180, 165, 150, 0.15);
}

.device-body.color-black {
  border-color: #2b2b2f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 80px rgba(40, 40, 45, 0.2);
}

.device-body.color-silver {
  border-color: #c0c0c6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(220, 220, 230, 0.18);
}

.device-body.color-deep-blue {
  border-color: #26384a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(41, 151, 255, 0.22);
}

.device-notch {
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  position: absolute;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.sensor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0d1a2d;
  border: 1px solid #1c2b42;
}

.device-display {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #1a1a24 0%, #000000 85%);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 56px 20px 40px;
  text-align: center;
}

.display-time {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.display-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 600;
}

.display-main {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Specs Section */
.specs-section {
  padding: 80px 24px;
  background: var(--bg-secondary);
}

.section-container {
  max-width: 980px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.spec-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.spec-badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.spec-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Finish Section */
.finish-section {
  padding: 80px 24px;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: -32px;
  margin-bottom: 36px;
}

.finish-selector {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.color-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  position: relative;
}

.color-dot.active {
  border-color: var(--accent-blue);
  transform: scale(1.15);
}

.color-dot[data-color="natural"] {
  background-color: #8f8a81;
}

.color-dot[data-color="black"] {
  background-color: #2b2b2f;
}

.color-dot[data-color="silver"] {
  background-color: #d8d8de;
}

.color-dot[data-color="deep-blue"] {
  background-color: #283a4f;
}

.finish-name {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 24px 100px;
  background: var(--bg-secondary);
}

.storage-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.storage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.storage-card:hover {
  border-color: var(--border-active);
}

.storage-card.active {
  border-color: var(--accent-blue);
  background: rgba(41, 151, 255, 0.08);
}

.storage-size {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.storage-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media (min-width: 640px) {
  .summary-box {
    flex-direction: row;
    justify-content: space-between;
  }
}

.summary-details {
  text-align: left;
}

.summary-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.summary-price {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-blue);
}

.order-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 980px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

@media (min-width: 640px) {
  .order-btn {
    width: auto;
  }
}

.order-btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

/* Footer */
.global-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 40px 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
}

.footer-legal {
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

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

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

/* Animations */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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