:root {
  --navy: #1b3a5c;
  --blue: #3b6fa0;
  --bg: #eef2f6;
  --card: #ffffff;
  --text: #2e2e2e;
  --muted: #667085;
  --pill: #d6e4f0;
  --border: #dde3ee;
  --shadow: 0 12px 40px rgba(27, 58, 92, 0.08);
  --ss-blue: #82c2d4;
  --ss-red: #ff474a;
}

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

body {
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(130, 194, 212, 0.22), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(27, 58, 92, 0.08), transparent 40%),
    #e8ecf0;
  color: var(--text);
  line-height: 1.55;
  padding: 24px 16px 48px;
  min-height: 100vh;
}

/* Password gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(130, 194, 212, 0.35), transparent 50%),
    linear-gradient(160deg, #1b3a5c 0%, #2a4f73 45%, #1a2f45 100%);
}

.gate[hidden],
.page[hidden] {
  display: none !important;
}

.gate-card {
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.gate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.gate-card h1 {
  font-size: 28px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.gate-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.gate-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gate-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gate-form input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.gate-form input:focus {
  border-color: var(--blue);
}

.gate-error {
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding: 40px 40px 32px;
  border-bottom: 3px solid var(--navy);
  background:
    linear-gradient(135deg, rgba(130, 194, 212, 0.12), transparent 55%),
    #fff;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.intro {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

.hero-links {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-links a,
.linkish {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pill);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.hero-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.hero-card h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero-card li {
  margin-bottom: 8px;
  font-size: 14px;
  margin-left: 18px;
}

.section {
  padding: 36px 40px;
}

.section.muted {
  background: #f8fafc;
}

.section-head h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.product {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  background: #fff;
}

.product.featured {
  border-color: #a8d4e0;
  background: linear-gradient(180deg, #f3fafc 0%, #fff 55%);
}

.product-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

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

.product-grid,
.product-grid.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.product-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.product h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-lead {
  font-size: 15px;
  margin-bottom: 14px;
}

.product-points {
  margin: 0 0 18px 18px;
  font-size: 14px;
}

.product-points li { margin-bottom: 6px; }

.demo-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(130, 194, 212, 0.15);
  border-radius: 10px;
  border-left: 3px solid var(--ss-blue);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* SoftSpot — description above, full phone demo below */
.softspot-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.softspot-copy {
  max-width: 720px;
}

.softspot-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px auto 16px;
  width: 100%;
  padding: 8px 8px 36px;
  background: transparent;
}

/* Large device — closer to the old full-demo size; scales down for smaller screens */
.phone-preview-full {
  width: min(450px, 92vw, calc(88vh * 454 / 851));
  aspect-ratio: 454 / 851;
  height: auto;
  max-width: 450px;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.phone-preview-full .phone-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* SoftSpot web — browser frame below iOS block */
.softspot-web-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.softspot-web-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px auto 8px;
  width: 100%;
  padding: 8px 0 24px;
}

.browser-preview {
  width: min(920px, 100%);
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 420px;
  max-height: min(640px, 78vh);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(27, 58, 92, 0.12);
  box-shadow: 0 16px 48px rgba(27, 58, 92, 0.12);
  background: #eef2f6;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #eef2f6;
}

.preview-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 180px;
  margin: 0 auto;
  border: 3px solid var(--navy);
  border-radius: 28px;
  padding: 14px 10px;
  background: #111;
}

/* iPhone 12 Pro slot — chrome is drawn inside the iframe */
.phone-preview {
  width: 300px;
  height: calc(300px * 844 / 390);
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.phone-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.phone-frame.static {
  width: 220px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 28px 16px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sinch-screen .btn {
  margin-top: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  border-radius: 14px;
  background: #f4c430;
  color: #111;
  font-size: 30px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.app-name {
  font-weight: 800;
  color: var(--navy);
}

.app-tag {
  font-size: 12px;
  color: var(--muted);
}

.visual-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.placeholder-card {
  background: var(--bg);
  border: 1px dashed #b8cce4;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.placeholder-card.wide {
  min-height: 280px;
}

.placeholder-card h4 {
  color: var(--navy);
  font-size: 20px;
}

.placeholder-card .soon {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.tag {
  align-self: center;
  margin-top: 8px;
  background: var(--pill);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

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

.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.mini-card h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 8px;
}

.mini-card p { font-size: 14px; color: var(--muted); }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-grid span {
  background: var(--pill);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.footer {
  padding: 24px 40px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer a { color: var(--blue); }

.footer .small {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero,
  .product-grid,
  .product-grid.split,
  .cards-row {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .phone-preview {
    width: min(300px, 100%);
    height: calc(min(300px, 100%) * 844 / 390);
  }

  .phone-preview-full {
    width: min(450px, 92vw, calc(88vh * 454 / 851));
    height: auto;
    aspect-ratio: 454 / 851;
    max-width: 450px;
  }

  .browser-preview {
    min-height: 360px;
    max-height: 70vh;
    aspect-ratio: 4 / 3;
  }
}
