:root {
  --bg: #f3f0ea;
  --bg-spot: rgba(240, 107, 59, 0.12);
  --bg-spot-2: rgba(28, 110, 125, 0.12);
  --ink: #15191f;
  --muted: #4c5561;
  --accent: #f06b3b;
  --accent-deep: #d45126;
  --sea: #1c6e7d;
  --card: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.6);
  --stroke: rgba(21, 25, 31, 0.12);
  --shadow: 0 26px 68px rgba(22, 28, 33, 0.18);
  --shadow-soft: 0 16px 36px rgba(21, 25, 31, 0.08);
  --shadow-soft-hover: 0 22px 48px rgba(21, 25, 31, 0.14);
  --shadow-soft-mini: 0 12px 24px rgba(21, 25, 31, 0.12);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-stroke: rgba(21, 25, 31, 0.18);
  --icon-grad-1: rgba(240, 107, 59, 0.85);
  --icon-grad-2: rgba(28, 110, 125, 0.8);
  --frame-sheen: rgba(255, 255, 255, 0.35);
  --frame-sheen-2: rgba(255, 255, 255, 0);
  --panel-grad-1: rgba(28, 110, 125, 0.12);
  --panel-grad-2: rgba(240, 107, 59, 0.08);
  --glow-1: rgba(240, 107, 59, 0.28);
  --glow-2: rgba(28, 110, 125, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --bg-spot: rgba(255, 122, 77, 0.16);
    --bg-spot-2: rgba(79, 183, 200, 0.14);
    --ink: #f5f3ee;
    --muted: #b2b8c0;
    --accent: #ff7a4d;
    --accent-deep: #ff6a3a;
    --sea: #4fb7c8;
    --card: rgba(21, 26, 33, 0.86);
    --glass: rgba(18, 23, 29, 0.7);
    --stroke: rgba(246, 248, 250, 0.14);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-soft-hover: 0 22px 56px rgba(0, 0, 0, 0.6);
    --shadow-soft-mini: 0 12px 28px rgba(0, 0, 0, 0.5);
    --input-bg: rgba(15, 19, 24, 0.9);
    --input-stroke: rgba(245, 243, 238, 0.2);
    --icon-grad-1: rgba(255, 122, 77, 0.9);
    --icon-grad-2: rgba(79, 183, 200, 0.85);
    --frame-sheen: rgba(255, 255, 255, 0.12);
    --frame-sheen-2: rgba(255, 255, 255, 0);
    --panel-grad-1: rgba(79, 183, 200, 0.14);
    --panel-grad-2: rgba(255, 122, 77, 0.16);
    --glow-1: rgba(255, 122, 77, 0.22);
    --glow-2: rgba(79, 183, 200, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 5%, var(--bg-spot), transparent 48%),
    radial-gradient(circle at 85% 15%, var(--bg-spot-2), transparent 46%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.glow.secondary {
  inset: 40% auto auto -15%;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
  width: 520px;
  height: 520px;
}

header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 6vw 10px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  letter-spacing: 0.4px;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.98rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(240, 107, 59, 0.32);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(240, 107, 59, 0.3);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 40px 6vw 70px;
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ghost:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(21, 25, 31, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.app-frame {
  position: relative;
  background: var(--glass);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, var(--frame-sheen), var(--frame-sheen-2));
  opacity: 0.7;
  pointer-events: none;
}

.app-frame > * {
  position: relative;
  z-index: 1;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.icon-card {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--stroke);
  font-size: 0.78rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--icon-grad-1), var(--icon-grad-2));
}

.icon.folder {
  background: linear-gradient(135deg, var(--icon-grad-2), var(--icon-grad-1));
}

section {
  position: relative;
  z-index: 1;
  padding: 70px 6vw;
  scroll-margin-top: 90px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  animation: floatIn 0.8s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

.feature-card h3 {
  margin: 12px 0 8px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(28, 110, 125, 0.16);
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--sea);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 20px;
  background: var(--glass);
}

.step span {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--accent-deep);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.settings-card {
  background: linear-gradient(140deg, var(--panel-grad-1), var(--panel-grad-2));
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--stroke);
}

.settings-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.settings-card li {
  padding: 8px 10px;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 0.95rem;
}

.cta-section {
  text-align: center;
  background: var(--card);
  margin: 0 6vw 80px;
  border-radius: 26px;
  padding: 50px 30px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.cta-section p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

input[type="email"] {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--input-stroke);
  min-width: 220px;
  font-size: 0.98rem;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--input-bg);
  color: var(--ink);
}

input[type="email"]::placeholder {
  color: var(--muted);
}

.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  padding: 20px 6vw 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

kbd {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: inset 0 -2px 0 rgba(21, 25, 31, 0.12);
  font-size: 0.9rem;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft-hover);
  }

  .icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft-mini);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  header {
    padding-bottom: 0;
  }

  .hero {
    padding-top: 20px;
  }

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

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
