/* ============================================
   POMO Marketing Website — styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Primary (Warm Red) */
  --primary-400: #ff6b6b;
  --primary-500: #ff5252;
  --primary-600: #e53935;
  --primary-700: #c62828;

  /* Secondary (Teal) */
  --secondary-400: #4ecdc4;
  --secondary-500: #26a69a;
  --secondary-600: #00897b;

  /* Accent gradient */
  --gradient-accent: linear-gradient(135deg, #ff5252, #26a69a);
  --gradient-accent-hover: linear-gradient(135deg, #e53935, #00897b);

  /* How It Works Colors */
  --step-1: #ff5252;
  --step-2: #26a69a;
  --step-3: #f59e0b;

  /* Neutrals */
  --bg-dark: #0f172a;
  --bg-dark-alt: #1e293b;
  --bg-light: #f8fafc;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dark: #1e293b;
  --text-dark-secondary: #64748b;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-light: rgba(255, 255, 255, 0.7);
  --glass-border-light: rgba(255, 255, 255, 0.5);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --nav-height: 72px;

  /* Transition */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

/* --- Section --- */
.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--bg-dark);
}

.section-darker {
  background: var(--bg-dark-alt);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

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

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--gradient-accent);
  color: white;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary-400);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(38, 166, 154, 0.1), transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-400);
  margin-bottom: 24px;
}

.hero-badge span {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--gradient-accent);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 82, 82, 0.3);
}

.hero-cta svg {
  width: 24px;
  height: 24px;
}

.hero-device {
  flex: 0 0 auto;
}

/* Device Frames */
.device-iphone {
  position: relative;
  width: 280px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 82, 82, 0.15);
}

.device-iphone img {
  border-radius: 30px;
  width: 100%;
}

.device-iphone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Apple Watch Device Frame */
.device-watch {
  position: relative;
  width: 160px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #444,
    0 0 0 4px #222,
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 82, 82, 0.1);
}

.device-watch img {
  border-radius: 28px;
  width: 100%;
}

/* Device Toggle */
.device-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}

.device-btn {
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.device-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.device-btn:last-child {
  border-radius: 0 20px 20px 0;
  border-left: none;
}

.device-btn.active {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
}

.gallery-hidden {
  display: none;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-screenshot {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.feature-screenshot img {
  width: 100%;
  transition: transform var(--transition);
}

.feature-card:hover .feature-screenshot img {
  transform: scale(1.02);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-card:nth-child(1) .step-number { color: var(--step-1); }
.step-card:nth-child(1) { border-color: rgba(255, 82, 82, 0.2); }

.step-card:nth-child(2) .step-number { color: var(--step-2); }
.step-card:nth-child(2) { border-color: rgba(38, 166, 154, 0.2); }

.step-card:nth-child(3) .step-number { color: var(--step-3); }
.step-card:nth-child(3) { border-color: rgba(245, 158, 11, 0.2); }

/* ============================================
   SCREENSHOT GALLERY
   ============================================ */
.gallery-wrapper {
  overflow-x: auto;
  padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-600) transparent;
}

.gallery-wrapper::-webkit-scrollbar {
  height: 6px;
}

.gallery-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-600);
  border-radius: 3px;
}

.gallery-track {
  display: flex;
  gap: 32px;
  padding: 0 24px;
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
}

.gallery-item .device-iphone {
  width: 220px;
}

.gallery-item .device-watch {
  width: 140px;
}

.gallery-label {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--gradient-accent);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 82, 82, 0.3);
}

.cta-button svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   PRIVACY & SUPPORT PAGES
   ============================================ */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--bg-dark-alt);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.page-content {
  padding: 60px 0 100px;
}

.page-content .container {
  max-width: 800px;
}

/* Privacy Policy text */
.policy-text {
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-text h2 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-text p {
  margin-bottom: 16px;
}

.policy-text ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-text ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.policy-text a {
  color: var(--primary-400);
  text-decoration: underline;
}

/* Support / Contact */
.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 82, 82, 0.3);
}

/* FAQ Accordion */
.faq-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--primary-500);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-400);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Hero device float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-device .device-iphone {
  animation: float 4s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero .container {
    gap: 40px;
  }

  .hero-device .device-iphone {
    width: 240px;
  }

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

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

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-device .device-iphone {
    width: 200px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item .device-iphone {
    width: 180px;
  }

  .gallery-item .device-watch {
    width: 120px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-device .device-iphone {
    width: 180px;
  }

  .lang-toggle {
    display: none;
  }

  .mobile-lang-toggle {
    display: flex !important;
  }
}

/* Mobile language toggle (hidden on desktop) */
.mobile-lang-toggle {
  display: none;
  gap: 12px;
  margin-top: 16px;
}

.mobile-lang-toggle .lang-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* Back to Portfolio */
.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-home:hover {
  color: var(--text-primary);
  border-color: var(--primary-400);
}

.mobile-home-link {
  font-size: 1rem !important;
  color: var(--text-secondary) !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  width: 60%;
  text-align: center;
}
