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

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

:root {
  color-scheme: light;
  --bg: #f2efe8;
  --surface: #fffdf8;
  --ink: #1a1a18;
  --muted: #5f5c55;
  --accent: #25615a;
  --accent-strong: #123d39;
  --highlight: #d46d4f;
  --line: rgba(26, 26, 24, 0.12);
  --shadow: 0 18px 40px rgba(26, 26, 24, 0.12);
  --radius: 22px;
}

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

body {
  font-family: "Neubri Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdf8f0 0%, #f2efe8 40%, #ede7db 100%);
  color: var(--ink);
  min-height: 100vh;
}

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

.bg-orbit {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 420px;
  background: radial-gradient(circle at 25% 30%, rgba(37, 97, 90, 0.18), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(212, 109, 79, 0.12), transparent 60%);
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 6vw, 80px);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(242, 239, 232, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.logo {
  font-family: "Neubri Serif", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.6px;
  text-transform: lowercase;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav a:hover {
  color: var(--accent-strong);
}

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}

main {
  padding: 40px clamp(24px, 6vw, 80px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-text h1 {
  font-family: "Neubri Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 60px);
  margin: 12px 0 16px;
}

.kicker {
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn.danger {
  border-color: rgba(212, 109, 79, 0.45);
  color: #7a3422;
  background: rgba(212, 109, 79, 0.08);
}

.btn.danger:hover {
  background: rgba(212, 109, 79, 0.16);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  width: 300px;
  height: 520px;
  border-radius: 32px;
  background: #111;
  padding: 16px;
  box-shadow: var(--shadow);
}

.device-screen {
  background: linear-gradient(160deg, #1f3b2f 0%, #2a4259 100%);
  height: 100%;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.device-header {
  font-weight: 700;
  font-size: 14px;
}

.device-card {
  background: rgba(255, 255, 255, 0.12);
  height: 160px;
  border-radius: 18px;
}

.device-list div {
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  margin-bottom: 10px;
}

.badge {
  position: absolute;
  bottom: -18px;
  right: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0 60px;
}

.strip div {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: "Neubri Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
}

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

.feature-grid article,
.screen-card,
.usecase-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.screen-image {
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 97, 90, 0.2), rgba(212, 109, 79, 0.2));
  margin-bottom: 12px;
}

.download,
.auth-card,
.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-grid details {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}

.contact {
  margin-top: 40px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .footer-links {
  display: flex;
  gap: 16px;
}

.auth-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
}

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

.helper {
  font-size: 12px;
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 120px);
  gap: 24px;
}

.sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: fit-content;
}

.sidebar a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(37, 97, 90, 0.12);
  color: var(--accent-strong);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 97, 90, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
}

.list-block {
  margin-bottom: 18px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(212, 109, 79, 0.12);
  border: 1px solid rgba(212, 109, 79, 0.4);
  color: #7a3422;
  margin-bottom: 16px;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(37, 97, 90, 0.1);
  color: var(--accent-strong);
}

.status-pill--ready {
  background: rgba(37, 97, 90, 0.14);
  color: var(--accent-strong);
}

.status-pill--failed {
  background: rgba(212, 109, 79, 0.18);
  color: #7a3422;
}

.status-pill--progress {
  background: rgba(26, 26, 24, 0.08);
  color: var(--muted);
}

.meta-grid {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.meta-grid strong {
  color: var(--ink);
  font-weight: 600;
}

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

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}
