/* Safoo - Premium Landing Page */

:root {
  --green: #10B981;
  --green-dark: #059669;
  --green-light: #ECFDF5;
  --green-pale: #D1FAE5;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --orange: #F59E0B;
  --orange-light: #FEF3C7;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --text: #111827;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.logo span {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--green);
}

/* Hero */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--white) 100%);
  overflow: hidden;
}

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

.hero-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-text h1 .highlight {
  color: var(--green);
}

.hero-text > p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-play:hover {
  border-color: #34A853;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.2);
}

.hero-perks {
  display: flex;
  gap: 24px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
}

.perk-icon {
  color: var(--green);
  font-weight: 700;
}

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

.phone {
  width: 280px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  background: var(--white);
  border-radius: 32px;
  min-height: 520px;
  padding: 50px 16px 16px;
  overflow: hidden;
}

.phone-bar {
  width: 120px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  margin: 10px auto 4px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.screen-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.screen-badge {
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
}

.screen-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  border-left: 4px solid;
}

.product-item.urgent {
  border-color: var(--red);
  background: var(--red-light);
}
.product-item.warning {
  border-color: var(--orange);
  background: var(--orange-light);
}
.product-item.safe {
  border-color: var(--green);
  background: var(--green-light);
}

.product-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-emoji {
  font-size: 22px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product-exp {
  font-size: 12px;
  color: var(--text-light);
}

.product-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.product-badge.urgent {
  background: var(--red);
}

/* Floating Elements */
.float-notif {
  position: absolute;
  top: 30px;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}

.float-recipe {
  position: absolute;
  bottom: 80px;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite 2s;
}

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

.notif-icon, .recipe-icon { font-size: 24px; }

.notif-title, .recipe-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notif-text, .recipe-text {
  font-size: 13px;
  line-height: 1.4;
}

.notif-text strong { color: var(--red); }

/* Problem Section */
.problem {
  padding: 32px 0;
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.problem-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.problem-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.problem-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.problem-detail {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.problem-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
}

/* How Section */
.how {
  padding: 100px 0;
  background: var(--white);
}

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

.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--bg);
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-screenshot {
  margin-bottom: 20px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-screenshot img {
  max-height: 180px;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.step-placeholder {
  font-size: 56px;
  opacity: 0.9;
}

.step-visual {
  font-size: 48px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

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

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

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA */
.cta {
  padding: 100px 0;
  background: var(--white);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 32px;
  padding: 60px;
}

.cta-mascot {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.cta-text {
  color: white;
}

.cta-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-text > p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  gap: 12px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green-dark);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Legal Pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal ul, .legal ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 14px;
  text-align: left;
}

.legal th {
  background: var(--bg);
  font-weight: 600;
}

.legal a { color: var(--green); }
.legal strong { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text > p {
    margin: 0 auto 32px;
  }

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

  .hero-perks {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: 260px;
  }

  .phone-screen {
    min-height: 460px;
  }

  .float-notif {
    right: 5%;
    top: 20px;
  }

  .float-recipe {
    left: 5%;
    bottom: 60px;
  }

  .problem-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .problem-item {
    padding: 0 24px;
  }

  .problem-divider {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .cta-content {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text > p {
    font-size: 16px;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }

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

  .cta-text h2 {
    font-size: 24px;
  }

  .nav {
    display: none;
  }
}
