:root {
  --blue: #6ea8ff;
  --green: #3fa26d;
  --ink: #e7edf6;
  --muted: #94a3b8;
  --bg: #0b1220;
  --card: #121c30;
  --border: #223049;
  --max-width: 960px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0.5rem auto 2rem;
  padding: 5rem 2.5rem 4rem;
  text-align: left;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(11, 18, 32, 0.85) 30%,
    rgba(11, 18, 32, 0.45)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section p {
  margin-bottom: 1rem;
  color: var(--ink);
}

/* Portfolio */
.portfolio {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x proximity;
}

.portfolio-card {
  flex: 0 0 auto;
  width: min(400px, 85vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.portfolio-card p {
  flex: 1;
}

.portfolio-card .button {
  align-self: flex-start;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.screenshot-frame {
  display: block;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.screenshot-frame img {
  display: block;
  width: 100%;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card .button {
  margin-top: 0.25rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.button:hover {
  background: #4cb381;
}

.button svg {
  width: 1.1em;
  height: 1.1em;
}

.button-secondary {
  background: #2b66d9;
}

.button-secondary:hover {
  background: #3d78ea;
}

/* Contact card */
.contact-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.contact-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
}

.contact-cta svg {
  width: 1.5em;
  height: 1.5em;
}

/* Mobile */
@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
  }

  .hero {
    width: calc(100% - 1.5rem);
    border-radius: 16px;
    padding: 2.75rem 1.25rem 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 1.75rem 1rem;
  }

  .card {
    padding: 1.1rem;
  }

  .contact-card {
    padding: 1.75rem 1.25rem;
  }

  .contact-cta {
    font-size: 1.05rem;
    padding: 0.85rem 1.75rem;
  }
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
