/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === VARIABLES === */
:root {
  --bg:          #080E18;
  --surface:     #0D1E2A;
  --brand:       #1F8A5E;
  --brand-muted: #2D7A52;
  --text-1:      #F7F8FA;
  --text-2:      #7A9AAD;
  --text-3:      #4A7A62;
  --border:      rgba(31,138,94,0.2);
  --card-glow:   0 0 24px rgba(31,138,94,0.07);
  --logo-glow:   0 0 12px rgba(31,138,94,0.6);
  --nav-height:  70px;
}

/* === BASE === */
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 720px; }

/* === SECTION LABEL === */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-mark {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--brand);
  border-radius: 6px;
  box-shadow: var(--logo-glow);
  flex-shrink: 0;
}

.nav__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-1);
}

.nav__links {
  display: none;
  gap: 28px;
  list-style: none;
}

.nav__link {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text-1); }

/* === FOOTER === */
.footer {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer__copy,
.footer__email {
  font-size: 12px;
  color: var(--text-2);
}

.footer__email:hover { color: var(--text-1); }

/* === HERO === */
.hero {
  position: relative;
  z-index: 0;
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(31,138,94,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero__accent { color: var(--brand); }

.hero__sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === PRODUCTS === */
.products {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* === CARD === */
.card {
  background: linear-gradient(135deg, var(--surface) 0%, #0A1520 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-glow);
}

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.card__status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}

.card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}

.card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === TAGS === */
.tag {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(31,138,94,0.25);
  background: rgba(31,138,94,0.08);
  color: var(--brand-muted);
}

.tag--link {
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tag--link:hover {
  background: rgba(31,138,94,0.12);
  color: var(--text-1);
}

/* === CONTACT === */
.contact {
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact__email {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.contact__email:hover { color: var(--text-1); }

.contact__sub {
  font-size: 13px;
  color: var(--text-2);
}

/* === RESPONSIVE: 640px+ === */
@media (min-width: 640px) {
  /* Nav: show links on tablet+ */
  .nav__links { display: flex; }

  /* Hero: larger type */
  .hero { padding: 96px 0 80px; }
  .hero__title { font-size: 52px; }

  /* Products: auto-fill grid */
  .products__grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  /* Footer: split layout */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* === ANCHOR SCROLL OFFSET (sticky nav compensation) === */
#products,
#contact {
  scroll-margin-top: var(--nav-height);
}

/* === TERMS PAGE === */
.terms {
  padding: 56px 0 80px;
  scroll-margin-top: var(--nav-height);
}

.terms__back { margin-bottom: 32px; }

.terms__back a {
  font-size: 13px;
  color: var(--brand-muted);
  transition: color 0.2s;
}

.terms__back a:hover { color: var(--text-1); }

.terms__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.terms__app {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 4px;
}

.terms__date {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 40px;
}

.terms__body h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 32px 0 12px;
}

.terms__body p {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.75;
  margin-bottom: 12px;
}

.terms__body a {
  color: var(--brand);
  text-decoration: underline;
}

.terms__body a:hover { color: var(--text-1); }
