/* ========================================
   Wotter Website Styles
   Design System Based on PRD
   ======================================== */

/* CSS Variables - Brand Colors */
:root {
  /* Primary Colors */
  --primary-blue: #03BBFE;
  --dark-blue: #123955;
  --light-blue: #2C6083;
  --accent-blue: #03A9F4;
  --subtext-gray: #6A8FA7;

  /* Secondary Colors */
  --character-brown: #553212;
  --success-green: #22B715;
  --background: #FFFFFF;
  --card-background: #EDEBEB;
  --white: #FFFFFF;

  /* Drink Type Colors */
  --water-color: #52E0FF;
  --bottle-color: #4C6DD1;
  --coffee-color: #7F5539;
  --tea-color: #84D14D;
  --beer-color: #FE9800;

  /* Typography */
  --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-spacing: 100px;
  --container-padding: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-blue);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-blue);
}

h1 {
  font-size: 48px;
  font-weight: 700;
}

h2 {
  font-size: 36px;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  font-weight: 500;
}

p {
  color: var(--subtext-gray);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-blue);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

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

/* ========================================
   Header / Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-blue);
}

.logo:hover {
  color: var(--dark-blue);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--light-blue);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--dark-blue);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Phone Mockup */
.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #1a1a1a, #333);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #E3F6FF 0%, #52E0FF 100%);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.otter-animation {
  font-size: 120px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.water-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(82, 224, 255, 0.5) 0%, #52E0FF 100%);
  border-radius: 50% 50% 0 0;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================
   Section Styles
   ======================================== */
.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: var(--section-spacing) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--card-background);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
  padding: var(--section-spacing) 0;
  background: var(--card-background);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 12px;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--primary-blue);
  margin-top: 70px;
  opacity: 0.3;
}

/* ========================================
   Drink Types Section
   ======================================== */
.drink-types {
  padding: var(--section-spacing) 0;
}

.drinks-showcase {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.drink-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.drink-item:hover .drink-icon {
  transform: scale(1.1);
}

.drink-item span {
  font-weight: 500;
  color: var(--dark-blue);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
}

.cta-content {
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #0A1F2E;
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  max-width: 300px;
}

.footer-brand .logo {
  color: var(--white);
}

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

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-bottom .credits {
  margin-top: 8px;
  font-size: 13px;
}

/* ========================================
   Page Hero (Support/Privacy)
   ======================================== */
.page-hero {
  padding: 160px 0 60px;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Support Page Styles
   ======================================== */
.contact-section {
  padding: 60px 0;
}

.contact-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--card-background);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-card p {
  margin-bottom: 24px;
}

.response-time {
  margin-top: 16px;
  font-size: 14px;
  color: var(--subtext-gray);
}

/* FAQ Section */
.faq-section {
  padding: var(--section-spacing) 0;
  background: var(--card-background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-blue);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-icon {
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  line-height: 1.7;
}

/* Getting Started Section */
.getting-started {
  padding: var(--section-spacing) 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--card-background);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tip-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.tip-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.tip-card p {
  font-size: 14px;
}

/* Feature Request Section */
.feature-request {
  padding: 60px 0 var(--section-spacing);
}

.feature-request-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #F0F9FF, #E3F6FF);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.feature-request-card h2 {
  margin-bottom: 16px;
}

.feature-request-card p {
  margin-bottom: 24px;
}

/* ========================================
   Privacy/Legal Page Styles
   ======================================== */
.legal-content {
  padding: 60px 0 var(--section-spacing);
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--card-background);
}

.legal-section h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--light-blue);
}

.legal-section p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-section ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  color: var(--subtext-gray);
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary-blue);
  border-radius: 50%;
}

.legal-section a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.contact-info {
  background: var(--card-background);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.contact-info p {
  margin: 0;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --container-padding: 40px;
    --section-spacing: 80px;
  }

  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --section-spacing: 60px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .otter-animation {
    font-size: 80px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  /* Drinks */
  .drinks-showcase {
    gap: 24px;
  }

  .drink-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  /* Tips */
  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .feature-request-card {
    padding: 32px 24px;
  }
}
