:root {
  --sf-dark: #1d1d1f;
  --sf-gray: #6e6e73;
  --sf-muted: #86868b;
  --sf-light: #f5f5f7;
  --sf-blue: #0071e3;
  --sf-blue-hover: #0077ed;
  --sf-ink: #2997ff;
  --sf-red: #ff5f57;
  --sf-yellow: #ffbd2e;
  --sf-green: #28c840;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sf-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--sf-dark);
  text-wrap: balance;
}

p {
  color: var(--sf-gray);
}

a {
  color: var(--sf-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section-alt {
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.section-alt::before,
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: 6rem 0;
  background: var(--sf-dark);
  color: #fff;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: -10%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.25), transparent 60%);
  animation: float 14s ease-in-out infinite;
}

.hero::after {
  bottom: -20%;
  left: -20%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.2), transparent 60%);
  animation: float2 18s ease-in-out infinite;
}

.hero h1,
.hero h2,
.hero h3,
.hero .h1,
.hero .h2,
.hero .h3,
.hero .closing {
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
}

.display-2 {
  font-size: 3.25rem;
}

.display-3 {
  font-size: 2.5rem;
}

.display-4 {
  font-size: 2rem;
}

.lead {
  color: var(--sf-gray);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-blue);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.7rem;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 100px;
}

.closing {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sf-dark);
  margin-top: 1.75rem;
  text-wrap: balance;
}

.hero .closing {
  color: #fff;
}

.navbar {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--sf-dark);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--sf-dark);
}

.nav-link {
  color: var(--sf-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sf-ink);
}

.nav-link.active {
  box-shadow: 0 2px 0 0 var(--sf-blue);
}

.btn {
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.btn-primary {
  background: var(--sf-blue);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sf-blue-hover);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45);
}

.btn-outline-dark {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--sf-dark);
  background: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark:hover {
  background: var(--sf-dark);
  color: #fff;
  border-color: var(--sf-dark);
}

.hero .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.hero .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

.install-command {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  background: #0f0f10;
  color: #f5f5f7;
  border-radius: 18px;
  padding: 2.65rem 1.5rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  min-width: 300px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-command:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
}

.install-command::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--sf-red);
  box-shadow: 1.15rem 0 0 var(--sf-yellow), 2.3rem 0 0 var(--sf-green);
}

.install-command .cmd-text {
  color: #fff;
}

.install-command .copy-btn {
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  cursor: pointer;
  color: #6e6e73;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.install-command .copy-btn:hover {
  color: #fff;
}

.install-command .copy-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer {
  position: relative;
  background: var(--sf-dark);
  color: #fff;
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.footer a {
  color: #d2d2d7;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer a:hover {
  color: #fff;
}

.footer .footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer .footer-col-title {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer .copynote {
  color: #86868b;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-50%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  .display-2 {
    font-size: 4.25rem;
  }

  .display-3 {
    font-size: 3.25rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.35rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .closing {
    font-size: 1.4rem;
  }
}

@media (min-width: 992px) {
  .display-2 {
    font-size: 5rem;
  }

  .display-3 {
    font-size: 3.75rem;
  }

  .display-4 {
    font-size: 2.75rem;
  }

  .lead {
    font-size: 1.5rem;
  }
}

/* Visual components */

.bento-card,
.app-window,
.code-window,
.license-card,
.work-card,
.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.bento-card:hover,
.app-window:hover,
.code-window:hover,
.license-card:hover,
.work-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.1);
}

.bento-card h3,
.app-window h3,
.license-card h3,
.work-card h3,
.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.bento-card p,
.app-window p,
.license-card p,
.work-card p,
.feature-card p {
  font-size: 0.95rem;
  color: var(--sf-gray);
  margin-bottom: 0;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sf-blue), #5e5ce6);
  margin-bottom: 1rem;
}

.bento-card:nth-child(2) .bento-icon { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.bento-card:nth-child(3) .bento-icon { background: linear-gradient(135deg, #32ade6, #34c759); }
.bento-card:nth-child(4) .bento-icon { background: linear-gradient(135deg, #af52de, #ff375f); }
.bento-card:nth-child(5) .bento-icon { background: linear-gradient(135deg, #34c759, #32ade6); }
.bento-card:nth-child(6) .bento-icon { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.bento-card:nth-child(7) .bento-icon { background: linear-gradient(135deg, #5e5ce6, #af52de); }
.bento-card:nth-child(8) .bento-icon { background: linear-gradient(135deg, #32ade6, #5e5ce6); }
.bento-card:nth-child(9) .bento-icon { background: linear-gradient(135deg, #34c759, #af52de); }

.app-window {
  background: #0f0f10;
  color: #f5f5f7;
  padding: 2.4rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.app-window::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 1.2rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--sf-red);
  box-shadow: 0.85rem 0 0 var(--sf-yellow), 1.7rem 0 0 var(--sf-green);
}

.app-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sf-muted);
  margin-bottom: 1.25rem;
  margin-top: 0.2rem;
}

.app-line {
  height: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-bottom: 0.65rem;
}

.app-line.primary { background: rgba(0, 113, 227, 0.45); }

.code-window {
  background: #0f0f10;
  color: #f5f5f7;
  padding: 2.4rem 1.5rem 1.5rem;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  text-align: left;
}

.code-window::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 1.2rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--sf-red);
  box-shadow: 0.85rem 0 0 var(--sf-yellow), 1.7rem 0 0 var(--sf-green);
}

.code-window pre {
  margin: 0;
  color: #f5f5f7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.code-window .kw { color: #ff7ab2; }
.code-window .str { color: #a5ff6e; }
.code-window .cmd { color: #5ac8fa; }
.code-window .comment { color: #6e6e73; }

.license-card .bento-icon,
.work-card .bento-icon,
.feature-card .bento-icon {
  background: linear-gradient(135deg, var(--sf-blue), #5e5ce6);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--sf-gray);
  font-size: 1.05rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sf-blue);
}

.split-section .text-side {
  text-align: left;
}

.split-section .visual-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .split-section .text-side,
  .split-section .visual-side {
    text-align: center;
  }
}

.brand-mark {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.brand-mark-footer {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.app-window-wrapper + .install-command {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.install-command .cmd-comment {
  color: var(--sf-muted);
}

.screenshot {
  display: block;
  height: 320px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

code {
  color: var(--sf-dark);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.95em;
}
