:root {
  --geist-background: #000000;
  --geist-foreground: #ffffff;
  --accents-1: #111111;
  --accents-2: #333333;
  --accents-3: #444444;
  --accents-4: #666666;
  --accents-5: #888888;
  --accents-6: #999999;
  --accents-7: #eaeaea;
  --accents-8: #fafafa;
  
  --radius: 6px;
  --gap: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--geist-background);
  color: var(--accents-6);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--geist-foreground); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accents-5); }
h1, h2, h3, h4, h5, h6 { color: var(--geist-foreground); font-weight: 600; letter-spacing: -0.04em; margin: 0 0 .5rem 0; line-height: 1.2; }
p { margin: 0 0 1rem 0; color: var(--accents-5); font-size: 1rem; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Nav */
nav { border-bottom: 1px solid var(--accents-2); height: 64px; display: flex; align-items: center; position: sticky; top: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: saturate(180%) blur(5px); z-index: 100; }
.nav-content { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--geist-foreground); letter-spacing: -0.02em; font-size: 1rem; }
.brand-logo { width: 22px; height: 22px; background: conic-gradient(from 180deg at 50% 50%, #ffffff 0deg, #333333 180deg, #ffffff 360deg); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.1); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--accents-6); font-size: 0.875rem; }
.nav-links a:hover { color: var(--geist-foreground); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; border: 1px solid transparent; letter-spacing: 0; }
.btn-primary { background: var(--geist-foreground); color: var(--geist-background); }
.btn-primary:hover { background: var(--accents-7); color: var(--geist-background); }
.btn-outline { background: transparent; border: 1px solid var(--accents-2); color: var(--geist-foreground); }
.btn-outline:hover { background: var(--accents-2); border-color: var(--accents-3); color: var(--geist-foreground); }

/* Grid / Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); margin-top: 2rem; }
.card { border: 1px solid var(--accents-2); border-radius: var(--radius); padding: 24px; background: var(--geist-background); transition: border-color .15s ease; display: flex; flex-direction: column; }
.card:hover { border-color: var(--accents-4); }
.card-header { margin-bottom: 1rem; }
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--geist-foreground); letter-spacing: -0.02em; }
.card-desc { font-size: 0.875rem; color: var(--accents-5); margin: 0; }
.card-body { flex: 1; margin-bottom: 1.5rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }

/* Sections */
.hero { padding: 100px 0 80px; text-align: center; display: flex; flex-direction: column; align-items: center;}
.hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -0.06em; margin-bottom: 1.5rem; line-height: 1.1; max-width: 800px; text-wrap: balance; }
.hero p { font-size: 1.25rem; max-width: 640px; margin: 0 auto 2.5rem; color: var(--accents-6); line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; }

.section { padding: 80px 0; border-top: 1px solid var(--accents-2); }
.section-title { font-size: 2rem; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.section-desc { font-size: 1rem; color: var(--accents-5); margin-bottom: 24px; max-width: 600px; line-height: 1.6; }

/* Badge */
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: var(--geist-foreground); border: 1px solid var(--accents-2); font-size: 0.75rem; letter-spacing: 0.05em; font-weight: 500; text-transform: uppercase; margin-bottom: 24px; }

/* Notices */
.notice { border: 1px solid var(--accents-2); background: var(--accents-1); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 24px; color: var(--accents-6); font-size: 0.875rem; display: flex; align-items: center; gap: 12px; font-weight: 400; }
.notice svg { flex-shrink: 0; color: var(--geist-foreground); }

/* Inputs */
input[type="email"], input[type="text"], input[type="password"] { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--accents-2); border-radius: var(--radius); background: var(--geist-background); color: var(--geist-foreground); font-family: var(--font-sans); font-size: 0.875rem; transition: border .2s ease; outline: none; margin-bottom: 1rem; }
input:focus { border-color: var(--accents-5); }
.form-label { display: block; font-size: 0.875rem; margin-bottom: 8px; color: var(--geist-foreground); font-weight: 500;}

/* Code & Output */
pre.code { background: #000; padding: 16px; font-family: var(--font-mono); font-size: 0.875rem; color: var(--accents-7); overflow-x: auto; margin: 0; line-height: 1.5; }
code { font-family: var(--font-mono); padding: 2px 4px; background: var(--accents-2); border-radius: 4px; font-size: 0.875em; color: var(--accents-8); }
.code-container { border: 1px solid var(--accents-2); border-radius: var(--radius); background: #000; overflow: hidden; margin-bottom: 24px;}
.code-block-header { padding: 10px 16px; border-bottom: 1px solid var(--accents-2); font-size: 0.75rem; color: var(--accents-5); font-family: var(--font-mono); background: var(--accents-1); display: flex; gap: 8px; }
.code-block-header span { width: 10px; height: 10px; border-radius: 50%; background: var(--accents-3); display: inline-block; }

/* Dashboard Elements */
.meter { height: 6px; background: var(--accents-2); border-radius: 3px; overflow: hidden; margin: 16px 0; }
.meter-fill { height: 100%; background: var(--geist-foreground); border-radius: 3px; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.list-unstyled li { padding-left: 20px; position: relative; margin-bottom: 8px; color: var(--accents-6); font-size: 0.9rem; }
.list-unstyled li::before { content: "·"; position: absolute; left: 6px; top: 0; color: var(--geist-foreground); font-weight: bold;}

/* History List */
.history-list { border: 1px solid var(--accents-2); border-radius: var(--radius); overflow: hidden; }
.history-item { padding: 16px 20px; border-bottom: 1px solid var(--accents-2); display: flex; justify-content: space-between; align-items: center; background: transparent; }
.history-item:last-child { border-bottom: none; }
.history-item h4 { margin: 0 0 4px 0; font-size: 0.875rem; font-weight: 500; color: var(--geist-foreground); }
.history-item .meta { font-size: 0.875rem; color: var(--accents-5); }
.history-empty { padding: 40px; text-align: center; border: 1px dashed var(--accents-2); border-radius: var(--radius); color: var(--accents-5); font-size: 0.875rem; }

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2.5rem; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
