/* SipEasy Website - Design System CSS */
/* Based on the app's "Futurist bar lab + neon luxe" theme */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Colors - Matching Brand.Color from DesignTokens.swift */
  --color-background: #0A0A0A;        /* Deep black */
  --color-surface: #1A1A1A;           /* Surface layer */
  --color-surface-secondary: #1F1F1F; /* Secondary surface */
  --color-surface-tertiary: #2A2A2A;  /* Tertiary surface */
  --color-card-background: #1E1E1E;   /* Card background */
  /* Core brand accents */
  --color-teal: #00F5D4;              /* Electric Teal */
  --color-cyan: #00D4FF;              /* Bright Cyan */
  --color-pink: #FF2E92;              /* Neon Pink */
  --color-purple: #8B5CF6;            /* Purple accent */
  --color-blue: #00D9FF;              /* Bright Blue */
  --color-green: #A8FF00;             /* Neon lime green */
  --color-yellow: #FFB800;            /* Warning yellow */
  --color-red: #FF3B30;               /* Error red */
  --color-silver: #C0C0C0;            /* Silver accent */
  --color-text-primary: #FFFFFF;      /* White text */
  --color-text-secondary: #B0B0B0;    /* Secondary text */
  --color-text-tertiary: #808080;     /* Tertiary text */
  --color-success: #A8FF00;
  --color-warning: #FFB800;
  --color-error: #FF3B30;
  --color-border: #333333;            /* Border color */
  --color-border-accent: rgba(0, 245, 212, 0.3); /* Accent border */
  --color-border-subtle: #2A2A2A;     /* Subtle border */
  
  /* Spacing - Matching Brand.Space */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-huge: 48px;
  --space-massive: 64px;
  
  /* Radii - Matching Brand.Radii */
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --radius-xxl: 32px;
  
  /* Shadows - Matching Brand.Shadow */
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-neon: 0 0 12px rgba(0, 245, 212, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 245, 212, 0.3);
  --shadow-teal-glow: 0 0 15px rgba(0, 245, 212, 0.6);
  --shadow-pink-glow: 0 0 14px rgba(255, 46, 146, 0.35);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
  
  /* Typography - Using Figtree font */
  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Text cursor (caret) color across site */
input,
textarea,
[contenteditable="true"] {
  caret-color: var(--color-cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-m);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--space-m);
  color: var(--color-text-secondary);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card Component - Matching GlassCard.swift */
.glass-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card.elevated {
  background: var(--color-surface-secondary);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: var(--shadow-card);
}

.glass-card.subtle {
  background: rgba(26, 26, 26, 0.5);
  border-color: var(--color-border-subtle);
  box-shadow: none;
}

/* Button Component - Matching NeonButton.swift */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 44px; /* Minimum tap target */
  justify-content: center;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  color: var(--color-background);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface-tertiary);
  color: var(--color-cyan);
  border: 1px solid var(--color-border-accent);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-neon);
}

.btn-large {
  padding: 16px 24px;
  font-size: 18px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  color: var(--color-text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  display: block;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: var(--space-l);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

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

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border-accent);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-cyan);
  margin-bottom: var(--space-l);
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-l);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-cyan);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 600px; /* Fixed height for proper image display */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--color-cyan);
  box-shadow: var(--shadow-neon);
}

.dot:hover {
  background: var(--color-cyan);
  transform: scale(1.2);
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, var(--color-surface-tertiary), var(--color-surface));
  border-radius: 40px;
  padding: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  border: 1px solid var(--color-border-subtle);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-background);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-preview {
  padding: var(--space-l);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.preview-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.preview-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-size: 16px;
}

.shaker-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.preview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
}

.card-header {
  margin-bottom: var(--space-m);
}

.card-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.card-badge {
  font-size: 12px;
  color: var(--color-teal);
  background: rgba(0, 245, 212, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.card-drinks {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.drink-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-s);
  border: 1px solid var(--color-border-subtle);
}

.drink-icon {
  font-size: 20px;
}

/* App Screen Components */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-normal);
  object-fit: contain;
  object-position: top;
  border-radius: 30px;
}

.app-screen.active {
  opacity: 1;
  transform: translateX(0);
}

/* Ensure images fit properly within phone screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: transparent; /* Ensure no background is hiding images */
}

/* Screenshot-specific styles removed since we're using actual images */

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  margin-bottom: var(--space-m);
}

.section-description {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  align-items: stretch;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: var(--shadow-neon);
  background: var(--color-surface-secondary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 0 var(--space-l) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 212, 0.08);
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  flex-shrink: 0;
}
/* SF Symbols SVG icon styling */
.feature-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-icon svg * {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 var(--space-m) 0;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* AI Badge and Featured Card */
.feature-card.featured {
  position: relative;
}

.gpt5-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-teal), #00D4B8);
  color: var(--color-background);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-m) 0;
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
  animation: pulse-glow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.5);
  }
}


/* Download Section */
.download {
  padding: 100px 0;
  background: var(--color-surface);
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download-title {
  margin-bottom: var(--space-m);
}

.download-description {
  font-size: 18px;
  margin-bottom: var(--space-xl);
}

.download-actions {
  margin-bottom: var(--space-xl);
}

.download-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-weight: var(--font-weight-medium);
}

.info-icon {
  font-size: 20px;
}

/* Footer */
.footer {
  background: var(--color-background);
  padding: 60px 0 30px;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
  font-size: 16px;
}

.footer-column a {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-s);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: var(--space-xs);
}

/* Responsive Design */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: 2; /* Show after content on mobile */
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
  }
  
  .hero-content {
    order: 1; /* Show first on mobile */
  }
  
  .screenshot-carousel {
    max-width: 280px; /* Slightly smaller for mobile */
    margin: 0 auto; /* Center the carousel */
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-l);
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
    margin: 0 auto;
    max-width: none;
  }
  
  .footer-logo {
    justify-content: center;
    margin: 0 auto var(--space-m);
  }
  
  .footer-description {
    text-align: center;
    margin: 0 auto;
  }
  
  .download-info {
    flex-direction: column;
    gap: var(--space-m);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-s);
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .features {
    padding: 80px 0;
  }
  
  .download {
    padding: 80px 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-teal-glow); }
  50% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.6); }
}

.phone-mockup {
  animation: float 6s ease-in-out infinite;
}

.btn-primary {
  animation: glow 3s ease-in-out infinite;
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-column a:focus {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-m);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-content h1 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  font-size: 2.5rem;
}

.last-updated {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.legal-content h2 {
  color: var(--color-cyan);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-m);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-border-accent);
  padding-bottom: var(--space-s);
}

.legal-content h3 {
  color: var(--color-text-primary);
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
  font-size: 1.25rem;
}

.legal-content ul {
  margin-left: var(--space-l);
  margin-bottom: var(--space-m);
}

.legal-content li {
  margin-bottom: var(--space-s);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.legal-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border-accent);
  text-align: center;
}

.legal-actions {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  margin-top: var(--space-l);
  flex-wrap: wrap;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .legal-content {
    border-width: 2px;
  }
}
