:root {
  /* Brand tokens mirror the Flutter app's AppColors so the website and the
     app read as one product. Deep teal canvas, bright red brand color,
     warm orange accent. */
  --bg: #073b40;
  --surface: #0e4a4f;
  --surface-alt: #155a60;
  --surface-high: #1f6c72;
  --border: #1f7077;
  --primary: #e0432a;
  --primary-deep: #b02d17;
  --accent: #ff8a4a;
  --on-primary: #ffffff;
  --text: #ffffff;
  --text-2: #d7eef0;
  --muted: #9cc4c8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 10%, #0a5158 0%, transparent 42%),
    radial-gradient(circle at 82% -5%, rgba(224, 67, 42, 0.32) 0%, transparent 38%),
    radial-gradient(circle at 90% 95%, rgba(255, 138, 74, 0.22) 0%, transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100%;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(7, 59, 64, 0.94) 0%,
    rgba(7, 59, 64, 0.55) 100%
  );
  border-bottom: 1px solid rgba(31, 112, 119, 0.55);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(31, 112, 119, 0.7);
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-2);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: rgba(31, 112, 119, 0.9);
  background: rgba(14, 74, 79, 0.85);
}

/* Language switch — sits in the .nav like a link but reads as a button. */
.lang-switch {
  font: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 67, 42, 0.55);
  background: linear-gradient(135deg, rgba(224, 67, 42, 0.22), rgba(255, 138, 74, 0.18));
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch::before {
  content: "🌐";
  font-size: 0.95rem;
  line-height: 1;
}

.lang-switch:hover {
  border-color: rgba(224, 67, 42, 0.95);
  background: linear-gradient(135deg, rgba(224, 67, 42, 0.35), rgba(255, 138, 74, 0.28));
}

/* Portuguese uses the standard Latin font stack — same as English. */
html[lang="pt"] body {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Hero */
.hero {
  padding: 68px 0 42px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffe2d3;
  border: 1px solid rgba(224, 67, 42, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(224, 67, 42, 0.16);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(224, 67, 42, 0.18);
}

.hero h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-2);
  margin: 0;
  line-height: 1.75;
  max-width: 56ch;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 18px;
  border: 1px solid rgba(31, 112, 119, 0.85);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--on-primary);
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(224, 67, 42, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(224, 67, 42, 0.45);
}

.btn-secondary {
  background: rgba(14, 74, 79, 0.72);
  color: var(--text);
}

.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 112, 119, 0.85);
  padding: 16px;
  background: linear-gradient(145deg, #105155, #0a4045);
  box-shadow: var(--shadow);
}

.hero-shot {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(31, 112, 119, 0.85);
}

/* Section */
.section {
  padding: 24px 0 50px;
}

.section h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.section p.lead {
  color: var(--text-2);
  margin: 8px 0 22px;
  max-width: 64ch;
  line-height: 1.6;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  background: rgba(14, 74, 79, 0.85);
  border: 1px solid rgba(31, 112, 119, 0.85);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 67, 42, 0.55);
}

.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
  background: linear-gradient(145deg, rgba(224, 67, 42, 0.25), rgba(255, 138, 74, 0.2));
  border: 1px solid rgba(224, 67, 42, 0.4);
  margin-bottom: 12px;
  color: var(--text);
}

.feature h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* Gallery — portrait phone screenshots. Each figure is a soft device-style
   card: padded bezel, rounded inner image with the actual phone aspect
   ratio (9 / 19.5 ≈ modern iPhone). Three across on desktop, two on
   tablet, one on phone with a sane max width so the card doesn't become
   huge on a narrow screen. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
}

.gallery figure {
  margin: 0;
  padding: 14px 14px 4px;
  border-radius: 28px;
  border: 1px solid rgba(31, 112, 119, 0.85);
  background: linear-gradient(
    160deg,
    rgba(21, 90, 96, 0.75),
    rgba(10, 64, 69, 0.85)
  );
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 138, 74, 0.04) inset;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 67, 42, 0.55);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 67, 42, 0.18) inset;
}

.gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid rgba(31, 112, 119, 0.7);
  background: #050b0c;
}

.gallery figcaption {
  padding: 12px 6px 14px;
  color: var(--text-2);
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.45;
}

/* Language badges */
.lang-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid rgba(31, 112, 119, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(14, 74, 79, 0.7);
}

.lang-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Generic page (privacy / terms / contact) */
.page {
  padding: 36px 0 50px;
}

.page-card {
  border: 1px solid rgba(31, 112, 119, 0.85);
  background: rgba(14, 74, 79, 0.88);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.page-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
}

.page-card p,
.page-card li {
  color: var(--text-2);
  line-height: 1.75;
}

.page-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-card a:hover {
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-box {
  background: rgba(21, 90, 96, 0.85);
  border: 1px solid rgba(31, 112, 119, 0.85);
  border-radius: var(--radius-md);
  padding: 14px;
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 10px;
  border-top: 1px solid rgba(31, 112, 119, 0.55);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

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

/* Responsive */
@media (max-width: 980px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

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

  /* Tablets: two phones per row reads better than three at this width. */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .contact-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Phones: one column, but cap the phone-card width so it stays
     readable (a full-width 19.5:9 portrait image is too tall). */
  .gallery {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .gallery figure {
    max-width: 320px;
    margin: 0 auto;
  }
}
