:root {
  --bg: #0f172a;
  --bg-soft: #0b1120;
  --card: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-2: #22c55e;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.6);
  --shadow-pill: 0 10px 30px rgba(56, 189, 248, 0.35);
  --max-width: 1120px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

main {
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.7),
    transparent
  );
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(226, 232, 240, 0.3);
  background: rgba(15, 23, 42, 0.92);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #38bdf8, #4ade80 40%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.logo-mark span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-text span {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 4px 0;
  position: relative;
}

.nav-links a:hover {
  color: #e5e7eb;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleX(0.6);
  transition: all 0.18s ease-out;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-cta,
.btn-primary {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta span {
  font-size: 18px;
  margin-top: -2px;
}

.btn-secondary {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 32px 0 32px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 16px;
}

.hero-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero h1 span {
  background: linear-gradient(120deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 32rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}

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

.hero-footnote {
  font-size: 11px;
  color: var(--muted);
}

.hero-right {
  position: relative;
}

.hero-card {
  border-radius: 26px;
  background: radial-gradient(circle at top left, #0f172a, #020617 40%, #020617);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  max-width: 360px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 600;
}

.hero-card-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--muted);
}

.hero-card-body {
  padding: 12px 10px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(34, 197, 94, 0.06)
  );
  border: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-card-body strong {
  color: #e5e7eb;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.hero-tagline {
  position: absolute;
  right: 0;
  bottom: -16px;
  transform: translateY(-16px);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.75;
}

/* Sections */

section {
  margin-top: 56px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 22px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-title {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.section-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.section-description-centered {
  text-align: center;
  max-width: 720px;
  margin: 14px auto 0;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.screenshot-box {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.7));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  justify-content: space-between;
  text-align: center;
}

.screenshot-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.screenshot-placeholder {
  display: inline-flex;
  align-self: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
}

.next-app-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.divider-text {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

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

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #111827, #020617);
  border: 1px solid var(--border);
  padding: 16px 15px 14px;
  font-size: 13px;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

/* Portfolio / Products */

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}

.portfolio-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, #111827, #020617);
  padding: 16px 16px 14px;
}

.portfolio-tag {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}

.portfolio-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.portfolio-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.portfolio-card ul {
  margin: 8px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-card ul li + li {
  margin-top: 8px;
}

.portfolio-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.portfolio-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-secondary-link {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* iPhone frame */

.iphone-frame {
  border-radius: 38px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px;
  width: 260px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, #020617, #020617 60%);
}

.iphone-screen {
  border-radius: 30px;
  background: linear-gradient(180deg, #020617, #0b1120);
  border: 1px solid rgba(15, 23, 42, 0.9);
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.iphone-placeholder {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.iphone-notch {
  position: absolute;
  top: 10px;
  width: 96px;
  height: 16px;
  border-radius: 999px;
  background: #020617;
  margin-inline: auto;
  left: 0;
  right: 0;
}

/* Simple content layout (for pricing / policy pages) */

.simple-layout {
  max-width: 720px;
}

.simple-layout h1 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.simple-layout h2 {
  font-size: 18px;
  margin-top: 26px;
  margin-bottom: 6px;
}

.simple-layout p,
.simple-layout li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.simple-layout ul {
  padding-left: 18px;
  margin: 8px 0;
}

/* Forms */

.contact-card form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
  display: inline-block;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  padding: 8px 9px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input::placeholder,
textarea::placeholder {
  color: #4b5563;
}

.form-status {
  font-size: 11px;
  color: var(--muted);
  min-height: 14px;
  margin-top: -4px;
}

.form-status[data-state='success'] {
  color: #34d399;
}

.form-status[data-state='error'] {
  color: #f87171;
}

/* About / Contact cards */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.about-card,
.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, #111827, #020617);
  padding: 16px 16px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */

footer {
  border-top: 1px solid #1f2937;
  margin-top: 48px;
  padding-top: 16px;
  font-size: 11px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 12px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.footer-col a {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

footer a {
  text-decoration: underline;
  text-decoration-color: rgba(156, 163, 175, 0.5);
}

/* Process / timeline */

.process {
  max-width: 760px;
  margin-top: 24px;
  position: relative;
  padding-left: 20px;
}

.process-line {
  position: absolute;
  top: 4px;
  left: 10px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0.2)
  );
}

.process-step {
  position: relative;
  padding-left: 24px;
  padding-bottom: 20px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-dot {
  position: absolute;
  left: -2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #020617;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.process-step-title {
  font-size: 15px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.process-step-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 3px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 880px) {
  .nav {
    gap: 12px;
    align-items: flex-start;
  }

  .nav-left {
    flex: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.12);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.55);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links a {
    padding: 8px 12px;
    width: 100%;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(226, 232, 240, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-right {
    order: -1;
  }

  .hero-card {
    margin: 0 auto;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-grid,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .screenshot-row {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    margin-top: 44px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
