/* HiraishinMail - Edge Email Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #080604;
  --bg-card: #100c08;
  --bg-card-hover: #181410;
  --bg-surface: #0c0a06;
  --text: #d8c8b0;
  --text-dim: #6a5a42;
  --text-bright: #f0e8d8;
  --border: #241c14;
  --border-hover: #342a1e;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.08);
  --accent-glow: rgba(245, 158, 11, 0.15);
  --warm-1: #f59e0b;
  --warm-2: #f97316;
  --warm-3: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(8, 6, 4, 0.92); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1000px; margin: 0 auto; padding: 0 2rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 26px; height: 26px; background: var(--accent); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.nav-logo svg { width: 14px; height: 14px; color: var(--bg); }
.nav-title { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.8rem; color: var(--text-dim); transition: color 200ms; font-weight: 450; }
.nav-link:hover { color: var(--text); }

/* Hero */
.hero { padding: 120px 2rem 80px; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 80vh; }
.hero-content { }
.hero-visual { }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 1.5rem; font-weight: 450; }
.hero-badge .edge { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1.25rem; color: var(--text-bright); }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 2rem; max-width: 440px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 6px; font-size: 0.82rem; font-weight: 500; font-family: var(--font); transition: all 200ms; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #d98a06; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn svg { width: 14px; height: 14px; }

/* Email Visual */
.email-visual { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.email-toolbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.email-toolbar .dot { width: 8px; height: 8px; border-radius: 50%; }
.email-toolbar .title { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); margin-left: 6px; }
.email-list { padding: 0; }
.email-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); transition: background 200ms; cursor: default; }
.email-item:hover { background: var(--bg-card-hover); }
.email-item .star { color: var(--accent); font-size: 0.8rem; }
.email-item .unread { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.email-item .from { font-size: 0.78rem; font-weight: 600; color: var(--text-bright); min-width: 120px; }
.email-item .subject { font-size: 0.78rem; color: var(--text-dim); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-item .time { font-size: 0.68rem; color: var(--text-dim); font-family: var(--mono); flex-shrink: 0; }
.email-item .preview { font-size: 0.72rem; color: #3a3020; }

/* Section */
.section { padding: 80px 2rem; max-width: 1000px; margin: 0 auto; }
.section-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem; font-family: var(--mono); }
.section-title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem; color: var(--text-bright); }
.section-desc { font-size: 0.92rem; color: var(--text-dim); max-width: 480px; line-height: 1.7; margin-bottom: 3rem; }

/* Zero Cost */
.zero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zero-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; }
.zero-card .value { font-size: 1.8rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.zero-card .label { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.25rem; font-weight: 450; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; transition: border-color 200ms; }
.feature-card:hover { border-color: var(--border-hover); }
.feature-card .icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; background: var(--accent-dim); color: var(--accent); }
.feature-card .icon svg { width: 16px; height: 16px; }
.feature-card h4 { font-size: 0.88rem; font-weight: 620; margin-bottom: 0.4rem; color: var(--text-bright); }
.feature-card p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }

/* Architecture */
.arch-visual { display: flex; align-items: center; justify-content: center; gap: 0; margin: 2rem 0; flex-wrap: wrap; }
.arch-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; min-width: 100px; text-align: center; }
.arch-node .label { font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.arch-node .name { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); }
.arch-arrow { padding: 0 0.5rem; color: var(--text-dim); font-size: 0.8rem; }

/* Tech */
.tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.72rem; font-weight: 450; color: var(--text-dim); }
.tech-chip .dot { width: 5px; height: 5px; border-radius: 50%; }

/* Code */
.code-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.code-header span { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); }
.code-dots { display: flex; gap: 5px; }
.code-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.code-body { padding: 1.25rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.9; color: var(--text-dim); overflow-x: auto; }
.code-body .c { color: #4a3a20; }
.code-body .k { color: var(--accent); }
.code-body .s { color: #f97316; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; margin-top: 3rem; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-link { font-size: 0.78rem; color: var(--text-dim); transition: color 200ms; }
.footer-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .zero-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-visual { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .nav-links { display: none; }
}
