:root {
  --color-background: #f6f9ff;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f7fe;
  --color-text: #163152;
  --color-text-soft: #5d7088;
  --color-border: rgba(57, 107, 180, 0.12);
  --color-primary: #0c7de8;
  --color-primary-dark: #0d4ca8;
  --color-primary-soft: #dcecff;
  --shadow-soft: 0 18px 45px rgba(19, 62, 120, 0.08);
  --shadow-card: 0 12px 30px rgba(23, 65, 123, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container-width: 1120px;
}

/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(53, 132, 238, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-background) 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 860px);
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(220, 236, 255, 0.36), rgba(255, 255, 255, 0));
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  text-align: center;
}

.section-heading h2,
.feature-copy h2,
.contact-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-copy,
.feature-copy p,
.contact-card p {
  color: var(--color-text-soft);
  font-size: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(22, 49, 82, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-text-soft);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(12, 125, 232, 0.12);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  width: min(100%, 760px);
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy {
  width: min(100%, 640px);
  margin: 1.3rem auto 0;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-wave {
  position: absolute;
  inset: auto -5% 0;
  height: 170px;
  border-radius: 100% 100% 0 0;
  opacity: 0.8;
}

.hero-wave-one {
  background:
    linear-gradient(90deg, rgba(138, 188, 255, 0.28), rgba(58, 142, 239, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(128, 180, 245, 0.2));
  transform: translateY(42px) rotate(-1.8deg);
}

.hero-wave-two {
  height: 120px;
  background: linear-gradient(90deg, rgba(93, 159, 242, 0.14), rgba(12, 125, 232, 0.08));
  transform: translateY(10px) rotate(1.2deg);
}

/* Apps */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.app-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(17, 61, 120, 0.12);
  border-color: rgba(12, 125, 232, 0.2);
}

.app-card h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.app-card p {
  color: var(--color-text-soft);
  font-size: 0.98rem;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2292f3, #0d58c8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.app-icon span {
  display: block;
  position: relative;
  width: 34px;
  height: 34px;
}

.app-icon-story img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.app-icon-productivity span::before,
.app-icon-productivity span::after,
.app-icon-utilities span::before,
.app-icon-utilities span::after {
  content: "";
  position: absolute;
}

.app-icon-productivity span::before {
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.app-icon-productivity span::after {
  inset: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    -15px 0 0 -11px rgba(255, 255, 255, 0.92),
    15px 0 0 -11px rgba(255, 255, 255, 0.92),
    0 -15px 0 -11px rgba(255, 255, 255, 0.92),
    0 15px 0 -11px rgba(255, 255, 255, 0.92);
}

.app-icon-utilities span::before {
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.app-icon-utilities span::after {
  left: 10px;
  right: 10px;
  top: 15px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.92);
}

/* Feature section */
.section-feature {
  padding-top: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 3rem;
}

.feature-copy {
  max-width: 500px;
}

.lead {
  margin: 1rem 0;
  font-size: 1.15rem;
  color: var(--color-text);
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  padding: 2rem 1rem 1rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at top center, rgba(113, 172, 245, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(216, 233, 255, 0.55), rgba(255, 255, 255, 0.9));
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 14% 8% 10%;
  border-radius: 32px;
  border: 1px solid rgba(58, 123, 210, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.phone {
  position: relative;
  z-index: 1;
  width: 205px;
  height: 412px;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #10387b, #081e4a);
  box-shadow:
    0 22px 40px rgba(8, 32, 78, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.phone-primary {
  transform: translateX(22px);
}

.phone-secondary {
  margin-left: -12px;
  transform: translateY(-18px);
}

.phone-notch {
  width: 86px;
  height: 14px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(2, 10, 25, 0.72);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: calc(100% - 22px);
  padding: 1rem 0.9rem 1rem;
  border-radius: 28px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(5, 79, 180, 0.08), rgba(3, 25, 77, 0.26)),
    linear-gradient(180deg, #0f4bb8 0%, #09225f 100%);
}

.phone-screen-menu {
  background:
    linear-gradient(180deg, rgba(10, 110, 230, 0.14), rgba(9, 33, 95, 0.18)),
    linear-gradient(180deg, #0f4cb8 0%, #081f57 100%);
}

.screen-label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.screen-art {
  flex: 1;
  margin: 1rem 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 0;
}

.screen-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-cta {
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(180deg, #1ea1ff, #0b79ea);
}

.story-card,
.story-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.story-card {
  margin-top: 1rem;
  padding: 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.story-row {
  margin-top: 0.7rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.78rem;
}

.screen-cta-small {
  margin-top: auto;
  font-size: 0.8rem;
}

/* Contact */
.contact-card {
  padding: 2.4rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  padding: 1.6rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(22, 49, 82, 0.08);
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

/* Responsive */
@media (max-width: 920px) {
  .feature-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    max-width: none;
    text-align: center;
  }

  .phone-stage {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 1rem;
    border: 1px solid rgba(12, 125, 232, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 7rem 0 6rem;
  }

  .section {
    padding: 5rem 0;
  }

  .phone-stage {
    min-height: auto;
    padding: 2.2rem 0.75rem 1rem;
    overflow: hidden;
  }

  .phone {
    width: 175px;
    height: 360px;
  }

  .phone-primary {
    transform: translateX(12px);
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 0.92rem;
    letter-spacing: 0.16em;
  }

  .hero h1,
  .section-heading h2,
  .feature-copy h2,
  .contact-card h2 {
    letter-spacing: -0.04em;
  }

  .phone-stage {
    gap: 0.5rem;
  }

  .phone {
    width: 150px;
    height: 312px;
    padding: 10px;
    border-radius: 30px;
  }

  .phone-primary {
    transform: none;
  }

  .phone-secondary {
    margin-left: -18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
