:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef3f9;
  --card: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe3ef;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #e8f0ff;
  --green: #1f9d68;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(31, 157, 104, 0.12), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.07);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-expertise {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-expertise span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.76);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links .nav-apps {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  padding: 11px 15px;
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links .nav-apps:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 54px;
  align-items: center;
  padding: 74px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expertise {
  display: none;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 243, 249, 0.84)),
    var(--card);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: -90px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.13);
  content: "";
}

.panel-card,
.panel-grid {
  position: relative;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  padding: 20px;
}

.panel-card-main {
  min-height: 180px;
}

.panel-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.panel-card strong {
  display: block;
  max-width: 280px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 34px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(31, 157, 104, 0.13);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.panel-grid span {
  border-radius: 16px;
  background: var(--accent-soft);
  padding: 14px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.apps {
  padding: 20px 0 72px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  padding: 26px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 24px 54px rgba(23, 32, 51, 0.13);
  transform: translateY(-4px);
}

.app-status {
  position: absolute;
  top: 22px;
  right: 22px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-status-live {
  background: rgba(31, 157, 104, 0.12);
  color: #14784f;
}

.app-status-live::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  vertical-align: 1px;
}

.app-status-soon {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.app-logo {
  display: flex;
  height: 54px;
  align-items: center;
  margin-bottom: 22px;
}

.firmaos-logo {
  gap: 12px;
}

.firmaos-symbol {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.firmaos-symbol i {
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 8px;
}

.firmaos-symbol i:nth-child(1) {
  top: 3px;
  left: 3px;
  background: #3b82f6;
}

.firmaos-symbol i:nth-child(2) {
  top: 3px;
  right: 3px;
  background: #22d3ee;
}

.firmaos-symbol i:nth-child(3) {
  bottom: 3px;
  left: 50%;
  background: #6366f1;
  transform: translateX(-50%);
}

.firmaos-wordmark {
  color: #1e293b;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.firmaos-wordmark span {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  background-clip: text;
  color: transparent;
}

.planer-logo {
  color: #1e293b;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.planer-logo strong {
  margin-left: 7px;
  color: #4f46e5;
  font-weight: 900;
}

.app-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-card h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.app-card p:not(.app-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.app-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
}

.app-card-soon {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-style: dashed;
  background: rgba(238, 243, 249, 0.62);
  box-shadow: none;
}

.app-card-soon:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.app-card-soon h3 {
  margin-bottom: 8px;
}

.app-card-soon p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.soon-symbol {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 500;
}

.footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

.email-reveal {
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.email-reveal:hover,
.email-reveal:focus-visible,
.email-link:hover,
.email-link:focus-visible {
  color: var(--accent);
}

.email-reveal:focus-visible,
.email-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .expertise {
    display: block;
  }

  .nav-expertise span:first-child,
  .nav-expertise span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-soon {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand small,
  .nav-expertise {
    display: none;
  }

  .topbar {
    gap: 12px;
    border-radius: 18px;
    padding: 11px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .nav-links {
    width: auto;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    flex: 1;
  }

  .nav-links .nav-apps {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .hero-panel {
    border-radius: 24px;
    padding: 16px;
  }

  .app-card-soon {
    grid-template-columns: 1fr;
  }

  .app-status {
    position: static;
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
  }

  .soon-symbol {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}
