:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface2: #f2f2ef;
  --border: #e4e4e0;
  --border-focus: #a0a09a;
  --text: #1a1a18;
  --text-muted: #888882;
  --text-dim: #b4b4ae;
  --accent: #1a1a18;
  --error: #b83232;
  --sans: 'Geologica', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(248,248,246,0.92);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo svg { color: var(--text-muted); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.header-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.header-btn:hover { border-color: var(--border-focus); }

/* Sections */
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-inner.narrow { max-width: 600px; }

.section-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 40px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 28px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--text); }

/* Mockup */
.hero-visual { display: flex; justify-content: flex-end; }

.mockup {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.mockup-bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
}

.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-url {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 10px;
  flex: 1;
  text-align: center;
}

.mockup-body {
  display: flex;
  min-height: 180px;
}

.mockup-sidebar {
  width: 110px;
  border-right: 1px solid var(--border);
  padding: 10px 0;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: default;
}

.sidebar-item.active {
  background: var(--surface2);
  color: var(--text);
  font-weight: 500;
}

.sidebar-item svg { flex-shrink: 0; }

.mockup-content { flex: 1; padding: 8px 0; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

.file-item:last-child { border-bottom: none; }
.file-item svg { color: var(--text-dim); flex-shrink: 0; }

.file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.file-name {
  font-size: 11px;
  color: var(--text);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 10px;
  color: var(--text-dim);
}

/* How it works */
.how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step { flex: 1; }

.step-num {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.step h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.step-arrow {
  font-size: 18px;
  color: var(--text-dim);
  padding-top: 32px;
  flex-shrink: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.feat-icon {
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.feat-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.feat-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* For whom */
.for-whom { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.whom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.whom-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg);
}

.whom-icon {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.whom-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.whom-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Access */
.access { text-align: center; }
.access h2 { margin-bottom: 8px; }

.access-desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 28px;
}

.access-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}

label {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

input[type="text"],
input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  outline: none;
  letter-spacing: 0.04em;
  transition: border-color 0.15s;
  width: 100%;
}

input::placeholder { color: var(--text-dim); }
input:focus { border-color: var(--border-focus); }
input.err { border-color: var(--error); }

button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}

button:hover { opacity: 0.85; }
button:active { transform: scale(0.98); }
button.loading { opacity: 0.4; pointer-events: none; }

.error {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--error);
  margin-bottom: 10px;
}

.error.show { display: flex; }

.hint {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.hint a { color: var(--text-muted); text-decoration: none; cursor: pointer; }
.hint a:hover { color: var(--text); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq h2 { margin-bottom: 24px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-q:hover { opacity: 0.7; }
.faq-q svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-q.open svg { transform: rotate(180deg); }

.faq-a {
  display: none;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  padding-bottom: 16px;
}

.faq-a.show { display: block; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-logo svg { color: var(--text-muted); }

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

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
  animation: modalIn 0.2s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.modal-close:hover { color: var(--text); opacity: 1; }

.modal-icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 18px;
}

.modal-field { margin-bottom: 10px; }

.modal-error {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--error);
  margin-bottom: 10px;
}

.modal-error.show { display: flex; }

.modal-btn { width: 100%; padding: 11px; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .whom-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 24px; }
  .step-arrow { display: none; }
  header { padding: 14px 20px; }
  .section-inner { padding: 60px 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}
