@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700');
@import url('https://fonts.bunny.net/css?family=nunito:600,700,800');

:root {
  /* Flutter Brand Colors */
  --brand-primary: #6CAFEF;
  --brand-primary-strong: #3F84D7;
  --brand-primary-soft: #EAF4FE;

  /* Surfaces */
  --bg: #F5FAFF;
  --bg-soft: #EAF4FE;
  --card: #FFFFFF;

  /* Text */
  --ink: #1F2430;
  --muted: #6B7280;

  /* Lines */
  --line: #E3EEF9;

  /* Accent */
  --accent: var(--brand-primary);
  --accent-strong: var(--brand-primary-strong);

  /* Shadows */
  --shadow: 0 14px 40px rgba(63, 132, 215, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, #ffffff, var(--bg-soft)) fixed;
  color: var(--ink);
  line-height: 1.6;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

.eyebrow,
.btn,
.nav-links {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header .app-name {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
}

.lang-switch a.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4f2ef;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.menu-toggle:hover {
  background: #efece7;
  transform: translateY(-1px);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon::before {
  top: 0;
}

.menu-icon::after {
  bottom: 0;
}

.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle.is-open .menu-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.menu-toggle.is-open .menu-icon span {
  opacity: 0;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mobile-drawer.open {
  max-height: 260px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem 1.1rem;
}

.mobile-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
}

.mobile-nav .btn-ghost {
  justify-content: flex-start;
  padding: 0.6rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary-strong);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

.logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #f0ede7;
  color: var(--ink);
}

.header .btn-ghost {
  background: var(--brand-primary-soft);
  border-color: rgba(108, 175, 239, 0.45);
  color: var(--brand-primary-strong);
}

.header .btn-ghost:hover {
  background: #d8ecff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(63, 132, 215, 0.35);
}

.btn-secondary {
  background: #eef0f3;
  color: var(--ink);
  border: 1px solid #e1e4ea;
}

.btn-ghost {
  background: #f4f2ef;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.65rem 1.2rem;
}

/* Hero */
.hero {
  background: linear-gradient(
    180deg,
    var(--brand-primary-soft) 0%,
    #ffffff 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.phone-wrap {
  position: relative;
  justify-self: center;
}

.phone-mock {
  width: min(320px, 82vw);
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(160deg, #ffffff, #f4f2ef);
  box-shadow: 0 16px 40px rgba(20, 30, 60, 0.14);
  border: 1px solid var(--line);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 20;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-shadow {
  position: absolute;
  inset: auto -8% -12% -8%;
  height: 18px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.24), transparent 70%);
  filter: blur(8px);
  opacity: 0.5;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.4rem;
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf8;
  font-size: 0.92rem;
}

.result-card {
  background: var(--card);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.result-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px #e6efe9;
}

.timestamp {
  font-size: 0.95rem;
}

.result-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.thumb {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: 16px;
  background: #f0efed;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hazard-count {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hazard-sub {
  color: var(--muted);
}

/* Features */
.features {
  padding: 3rem 0;
}

.features h2,
.about h2 {
  text-align: center;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.feature-card.feature-one {
  border-left: 6px solid var(--brand-primary);
}

.feature-card.feature-two {
  border-left: 6px solid var(--brand-primary);
}

.feature-card.feature-three {
  border-left: 6px solid var(--brand-primary);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 28px;
}


.feature-visual {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  /* box-shadow: 0 8px 20px rgba(20, 30, 60, 0.1); */
  border: none;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feature-copy h3 {
  margin-top: 0.1rem;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stores */
.stores {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-primary-soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stores h2 {
  text-align: center;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.stores p {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 1.6rem auto;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  cursor: default;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  min-width: 180px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(20, 30, 60, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 30, 60, 0.24);
}

.store-badge.playstore,
.store-badge.appstore {
  background: #ffffff;
}

/* About */
.about {
  padding: 3rem 0 3.5rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.about > .container > p {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.about-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

.about-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.about.legal .container {
  max-width: 720px;
  text-align: left;
}

.about.legal h1 {
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.about.legal h2 {
  text-align: left;
  font-size: 1.35rem;
  margin: 1.6rem 0 0.6rem;
}

.about.legal h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.4rem;
}

.about.legal > .container > p {
  text-align: left;
  max-width: none;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.about.legal p {
  margin: 0 0 1rem 0;
}

.about.legal ul {
  margin: 0.3rem 0 1.1rem 1.2rem;
  padding-left: 0.8rem;
}

.about.legal li {
  margin-bottom: 0.35rem;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.12);
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
}

.product-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.product-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.product-card-image {
  width: 100%;
  max-width: 220px;
  display: block;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.08);
  margin: 0;
}

.product-card-body {
  min-width: 0;
}

.product-card-cta {
  font-weight: 700;
  color: var(--brand-primary-strong);
}

@media (max-width: 700px) {
  .product-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-card-image {
    max-width: 320px;
    margin: 0 0 0.65rem;
  }
}

.product-article h1,
.product-article h2 {
  text-align: left;
}

.product-article h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.product-article p {
  margin: 0 0 1rem 0;
}

.product-article ul {
  margin: 0.3rem 0 1.1rem 1.2rem;
  padding-left: 0.8rem;
}

.product-article li {
  margin-bottom: 0.35rem;
}

.product-article a {
  color: var(--brand-primary-strong);
  font-weight: 700;
}

.product-back-link {
  display: inline-flex;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-back-link:hover {
  color: var(--ink);
}

.product-cta {
  margin: 0.7rem 0 0;
  padding: 1rem 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-primary-soft) 100%);
  border: 1px solid var(--line);
}

.product-cta p {
  margin: 0 0 0.75rem;
}

.product-cta-btn {
  min-width: 240px;
  width: min(100%, 360px);
}

.product-article .product-cta-btn {
  color: #ffffff;
}

.product-cta-note {
  margin-top: 1.0rem !important;
  color: var(--muted);
  font-size: 0.7rem;
}

.product-figure {
  margin: 0;
}

.product-figure-top {
  margin: 0.9rem 0 1.1rem;
}

.product-figure-mid {
  margin: 0.8rem 0 1.2rem;
}

.product-figure img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(20, 30, 60, 0.1);
}

@media (max-width: 640px) {
  .product-figure img {
    width: min(100%, 340px);
  }
}


/* Footer */
.footer {
  background: var(--brand-primary-soft);
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--ink);
  margin-left: 1rem;
  font-weight: 700;
}

.footer nav {
  display: flex;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.8s 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;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    display: block;
  }

  .result-body {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .header .btn-ghost {
    width: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto;
  }

  .feature-visual {
    margin: 0 auto;
  }
}

@media (orientation: landscape) {
  .hero,
  .features,
  .about,
  .stores {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero .container,
  .features .container,
  .about .container,
  .stores .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .about.legal {
    min-height: auto;
    display: block;
  }
}
