/* TideWise Website Styles */
/* Matching the app's nautical design system */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System - HSL values matching src/index.css */
  --background: hsl(45, 35%, 95%);
  --foreground: hsl(186, 45%, 15%);

  --card: hsl(45, 40%, 98%);
  --card-foreground: hsl(186, 45%, 15%);

  --primary: hsl(186, 65%, 25%);
  --primary-foreground: hsl(45, 55%, 92%);

  --secondary: hsl(43, 75%, 55%);
  --secondary-foreground: hsl(186, 45%, 15%);

  --muted: hsl(186, 25%, 88%);
  --muted-foreground: hsl(186, 30%, 35%);

  --accent: hsl(43, 80%, 60%);
  --accent-foreground: hsl(186, 45%, 15%);

  /* Legacy variable mappings for existing website classes */
  --ocean-deep: var(--primary);
  --ocean-medium: hsl(186, 55%, 40%);
  --ocean-light: hsl(188, 50%, 60%);
  --ocean-surface: hsl(188, 40%, 75%);

  --sand-accent: var(--accent);
  --sand-light: hsl(43, 75%, 70%);
  --background-light: var(--background);
  --background-card: var(--card);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);

  /* Gradients */
  --gradient-ocean: linear-gradient(135deg, hsl(186, 65%, 25%), hsl(186, 55%, 40%), hsl(188, 50%, 60%));
  --gradient-hero: linear-gradient(180deg, hsl(186, 65%, 25%) 0%, hsl(186, 55%, 40%) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-ocean: 0 10px 40px -10px hsla(186, 65%, 25%, 0.3);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', -apple-system, sans-serif;
  /* Removed Playfair Display */
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ocean-deep);
  letter-spacing: -0.02em;
  /* App-like tight tracking */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

a {
  color: var(--ocean-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--ocean-light);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-smooth);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ocean-deep);
  letter-spacing: -0.03em;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--ocean-medium);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  animation: wave 15s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-20px) translateX(-30px);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--sand-accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--sand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  background: var(--background-card);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(186, 65%, 25%, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-ocean);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-ocean);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pro-badge {
  display: inline-block;
  background: var(--sand-accent);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */

.screenshots {
  background: var(--background-light);
}

.screenshots-carousel {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding: var(--spacing-md) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ocean-medium) var(--background-light);
}

.screenshots-carousel::-webkit-scrollbar {
  height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
  background: var(--background-light);
}

.screenshots-carousel::-webkit-scrollbar-thumb {
  background: var(--ocean-medium);
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  max-width: 350px;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.screenshot-item img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */

.download {
  background: var(--gradient-ocean);
  color: white;
  text-align: center;
}

.download h2,
.download p {
  color: white;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--ocean-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--ocean-deep);
}

.store-icon {
  font-size: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--sand-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .cta-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: var(--spacing-md) 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}