@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Inter-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Inter-700.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/Inter-800.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-400.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-500.ttf") format("truetype");
}

:root {
  --background: hsl(220 20% 97%);
  --foreground: hsl(222 47% 11%);
  --card: hsl(0 0% 100%);
  --muted: hsl(220 14% 96%);
  --muted-foreground: hsl(220 9% 46%);
  --border: hsl(220 13% 91%);
  --accent: hsl(227 71% 55%);
  --accent-foreground: hsl(0 0% 100%);
  --hero-bg: hsl(227 45% 18%);
  --hero-foreground: hsl(0 0% 100%);
  --hero-muted: hsl(220 20% 80%);
  --radius: 0.75rem;
  --container-width: 1400px;
  --shadow-card: 0 18px 40px rgba(31, 41, 55, 0.06);
  --shadow-button: 0 18px 32px rgba(70, 96, 244, 0.24);
  --shadow-media: 0 32px 72px rgba(17, 24, 39, 0.18);
  --font-sans: Inter, "Segoe UI", Arial, Helvetica, system-ui, sans-serif;
  --font-display: Inter, "Segoe UI", Arial, Helvetica, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 4rem, var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(29, 43, 95, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-row,
.footer-row,
.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--hero-foreground);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: calc(var(--radius) - 0.125rem);
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-foreground);
}

.button-primary:hover {
  background: hsl(227 71% 51%);
}

.button-header {
  min-height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.button-large {
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-button);
}

.button-large svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  overflow: hidden;
  padding: 8rem 0 5rem;
  background: var(--hero-bg);
  color: var(--hero-foreground);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.25rem);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  animation: fade-up 0.6s ease-out forwards;
}

.hero h1,
.section h2,
.cta h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.lead {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--hero-muted);
  font-size: 1.125rem;
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.subtle {
  margin: 1rem 0 0;
  color: rgba(204, 214, 242, 0.6);
  font-size: 0.875rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  animation: fade-up 0.6s ease-out 0.15s both;
}

.hero-mockup {
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(36, 59, 143, 0.1);
  transition: transform 0.5s ease;
}

.hero-mockup:hover {
  transform: rotate(0deg);
}

.section {
  padding: 5rem 0;
}

.section-muted,
.privacy-strip {
  background: rgba(242, 244, 248, 0.8);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section h2,
.cta h2 {
  font-size: clamp(1.875rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--foreground);
}

.section-heading p,
.cta p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.65;
}

.feature-grid,
.steps-grid,
.workflow-grid {
  display: grid;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card,
.workflow-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card {
  padding: 1.5rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.card:hover {
  border-color: rgba(70, 96, 244, 0.2);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.icon-chip,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 0.125rem);
  background: rgba(70, 96, 244, 0.1);
  color: var(--accent);
  transition: background-color 0.2s ease;
}

.card:hover .icon-chip {
  background: rgba(70, 96, 244, 0.15);
}

.icon-chip svg,
.step-icon svg,
.privacy-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3,
.step-card h3,
.workflow-item h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p,
.step-card p,
.workflow-item p,
.privacy-item span,
.site-footer {
  color: var(--muted-foreground);
}

.card p,
.step-card p,
.workflow-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.step-card {
  text-align: center;
}

.step-icon-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 1.25rem;
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow-grid {
  max-width: 48rem;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.workflow-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}

.workflow-item .icon-chip {
  flex: 0 0 auto;
}

.privacy-strip {
  padding: 4rem 0;
}

.privacy-row {
  justify-content: center;
  gap: 4rem;
}

.privacy-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cta {
  padding: 5rem 0;
  background: var(--hero-bg);
  color: var(--hero-foreground);
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--hero-foreground);
}

.cta p {
  color: var(--hero-muted);
}

.cta .button {
  margin-top: 2rem;
}

.site-footer {
  padding: 2rem 0;
  background: var(--hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(204, 214, 242, 0.6);
  font-size: 0.875rem;
}

.footer-row {
  flex-wrap: wrap;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--hero-muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 4rem;
  }

  .hero-mockup {
    max-width: 23.75rem;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 2rem, var(--container-width));
  }

  .site-header {
    position: sticky;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-grid,
  .workflow-grid,
  .privacy-row {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .privacy-row {
    gap: 2rem;
  }

  .privacy-row,
  .footer-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-row,
  .footer-row {
    flex-wrap: wrap;
  }

  .button-header,
  .button-large {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .feature-grid,
  .steps-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .cta {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: 7rem;
  }

  .hero-grid {
    gap: 4rem;
  }

  .hero-media {
    justify-content: flex-end;
  }

  .hero-mockup {
    max-width: 26.25rem;
    transform: rotate(1deg);
  }

  .section {
    padding: 7rem 0;
  }

  .cta {
    padding: 7rem 0;
  }
}
