/* =========================================================
   Smart City App – Landingpage
   ========================================================= */

:root {
  --blue: #1E88E5;
  --blue-dark: #1565C0;
  --blue-light: #D6E9FF;
  --teal: #26A69A;
  --teal-light: #D3F1EC;
  --amber: #FFB300;
  --ink: #16222E;
  --ink-soft: #5A6B7B;
  --bg: #F6FAFD;
  --surface: #FFFFFF;
  --surface-variant: #EDF3F8;
  --outline: #B7C4CF;
  --dark: #0E1621;
  --dark-2: #131E2C;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16,34,50,.06), 0 6px 16px rgba(16,34,50,.05);
  --shadow-md: 0 12px 34px rgba(16,34,50,.09);
  --shadow-lg: 0 28px 70px rgba(16,34,50,.16);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(246, 250, 253, .82);
  border-bottom: 1px solid rgba(183, 196, 207, .45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 14px rgba(30,136,229,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.brand-text small { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.site-nav a:hover { background: var(--blue-light); color: var(--blue-dark); }
.site-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30,136,229,.35);
}
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  border-radius: 12px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(30,136,229,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(30,136,229,.45); }
.btn-ghost {
  background: rgba(255,255,255,.7);
  border-color: var(--outline);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Eyebrow & Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--bg)); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: 17.5px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.75); }
.section-head.light .eyebrow { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(38,166,154,.18), transparent 60%),
    radial-gradient(700px 500px at 5% 0%, rgba(30,136,229,.16), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); margin-bottom: 18px; }
.grad {
  background: linear-gradient(120deg, var(--blue), var(--teal) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 18.5px; color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.hero-points li { position: relative; padding-left: 24px; }
.hero-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: 0; }
.hero-orb-1 { width: 320px; height: 320px; background: var(--blue); top: -40px; right: 0; }
.hero-orb-2 { width: 260px; height: 260px; background: var(--teal); bottom: -20px; left: 10px; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 300px;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c2634, #0b1119);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0b1119; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone img {
  border-radius: 32px;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  background: #0b1119;
}
.phone-lg { width: 320px; }
.phone-sm { width: 240px; padding: 9px; border-radius: 36px; }
.phone-sm img { border-radius: 27px; }
.phone-2 { position: absolute; right: -30px; bottom: -40px; width: 220px; }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(183,196,207,.35);
}
.stat { text-align: center; padding: 8px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--blue-dark);
}
.stat span { color: var(--ink-soft); font-size: 14px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(183,196,207,.3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(30,136,229,.4); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--blue-light); font-size: 26px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 46px 0;
}
.showcase.reverse .showcase-text { order: 2; }
.showcase.reverse .showcase-visual { order: 1; }
.showcase-visual { display: flex; justify-content: center; position: relative; }
.showcase-visual-2up {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}
.showcase-visual-2up .phone { position: relative; flex: 0 0 auto; }
.showcase-text h3 { font-size: clamp(24px, 3vw, 32px); }
.showcase-text p { color: var(--ink-soft); font-size: 17px; }
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 500; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: #0d6e63;
  border-radius: 50%; font-size: 12px; font-weight: 800;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
.gallery-item { text-align: center; }
.gallery-item .phone { margin: 0 auto 14px; }
.gallery-item figcaption { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Technik (dark) ---------- */
.section-dark {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(30,136,229,.28), transparent 60%), var(--dark);
  color: #eaf1f8;
}
.section-dark .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease, background .25s ease;
}
.tech-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.tech-card h3 { font-size: 18px; color: #fff; }
.tech-card p { color: rgba(234,241,248,.78); font-size: 15px; margin: 0; }
.tech-card code { background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; }

.tech-code {
  margin-top: 40px;
  background: #0a121c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tech-code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f57; } .dot-yellow { background: #febc2e; } .dot-green { background: #28c840; }
.tech-code-title { margin-left: 10px; font-size: 13px; color: rgba(234,241,248,.7); font-family: ui-monospace, monospace; }
.tech-code pre { margin: 0; padding: 22px; overflow-x: auto; }
.tech-code code { color: #cfe3f7; font-size: 14px; line-height: 1.7; }

/* ---------- Value grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(183,196,207,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--teal-light); font-size: 26px; margin-bottom: 16px;
}
.value-card h3 { font-size: 19px; }
.value-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- CTA ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #0b3d66 100%);
  color: #fff;
}
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cta-copy h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.cta-copy p { color: rgba(255,255,255,.85); font-size: 17.5px; }
.section-cta .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.section-cta .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.section-cta .btn-ghost:hover { background: rgba(255,255,255,.24); }
.cta-visual { display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1119; color: rgba(234,241,248,.85); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer-brand p { font-size: 14.5px; color: rgba(234,241,248,.7); margin: 4px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(234,241,248,.8); font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-meta p { margin: 0 0 6px; font-size: 14px; }
.footer-note { color: rgba(234,241,248,.55); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px;
    border-bottom: 1px solid rgba(183,196,207,.5);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: .25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-points { justify-content: center; }
  .hero-actions { justify-content: center; }
  .lead { margin-inline: auto; }
  .showcase, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse .showcase-text { order: 1; }
  .showcase.reverse .showcase-visual { order: 2; }
  .showcase-visual-2up { min-height: 0; }
  .phone-2 { position: static; margin: 20px auto 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 520px) {
  .feature-grid, .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .phone, .phone-lg { width: 260px; }
  .phone-sm { width: 220px; }
}
