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

:root {
    --bg: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --border: #1e2a3a;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --gold: #d4a853;
    --gold-light: #f0d68a;
    --silver: #c0c8d4;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,14,26,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { color: var(--gold); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }
.logo-icon { font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--text-dim); font-size: .9rem; }
.nav-links a:hover { color: var(--text); }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .9rem; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .95rem; cursor: pointer;
    border: none; transition: all .2s;
}
.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-primary, .btn:not(.btn-outline) {
    background: linear-gradient(135deg, var(--gold), #b8912e);
    color: #0a0e1a;
}
.btn-primary:hover, .btn:not(.btn-outline):hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; border: 1px solid var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-glow { box-shadow: 0 0 30px rgba(212,168,83,.25); }

/* ===== Hero ===== */
.hero {
    position: relative; padding: 160px 0 100px; text-align: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(212,168,83,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--silver));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-dim); max-width: 540px; margin: 0 auto 40px; }

/* ===== Features ===== */
.features { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; text-align: center;
    transition: border-color .2s;
}
.feature-card:hover { border-color: var(--gold); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.feature-card p { color: var(--text-dim); font-size: .95rem; }

/* ===== Pricing ===== */
.pricing-section, .pricing-page { padding: 80px 0; }
.pricing-page { padding-top: 120px; }
.page-title { text-align: center; font-size: 2.2rem; margin-bottom: 12px; }
.page-subtitle { text-align: center; color: var(--text-dim); margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px; text-align: center;
    position: relative; transition: border-color .2s;
}
.pricing-card:hover { border-color: var(--gold); }
.pricing-popular { border-color: var(--gold); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #0a0e1a; font-size: .75rem; font-weight: 600;
    padding: 4px 16px; border-radius: 20px;
}
.plan-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.plan-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.plan-price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.plan-desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 32px; text-align: left; }
.plan-features li {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    color: var(--text-dim); font-size: .9rem;
}
.plan-features li::before { content: "\2713 "; color: var(--gold); margin-right: 8px; }

/* ===== Dashboard ===== */
.dashboard { padding: 100px 0 60px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.8rem; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.company-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; transition: border-color .2s;
}
.company-card:hover { border-color: var(--gold); }
.company-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.company-card-header h3 { font-size: 1.1rem; }
.status-badge {
    font-size: .75rem; padding: 3px 10px; border-radius: 20px; font-weight: 500;
}
.status-active { background: rgba(34,197,94,.15); color: var(--success); }
.status-inactive { background: rgba(148,163,184,.15); color: var(--text-dim); }
.company-desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 16px; }
.company-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: .85rem; font-weight: 500; }
.plan-starter { color: var(--text-dim); }
.plan-business { color: var(--gold); }
.plan-enterprise { color: var(--accent-light); }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 80px 0; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: .5; }
.empty-state h2 { margin-bottom: 12px; color: var(--text-dim); }
.empty-state p { color: var(--text-dim); margin-bottom: 24px; }

/* ===== Create Page ===== */
.create-page { padding: 100px 0 60px; }
.create-page h1 { font-size: 1.8rem; margin-bottom: 32px; }
.create-form { display: flex; flex-direction: column; gap: 28px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .95rem; }
.required { color: var(--error); }
input[type="text"], textarea {
    width: 100%; padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: .95rem; font-family: inherit;
    transition: border-color .2s;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--gold); }

/* Radio Cards */
.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 100px; }
.radio-card input { display: none; }
.radio-card-inner {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 16px 12px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; transition: all .2s;
    text-align: center;
}
.radio-card input:checked + .radio-card-inner { border-color: var(--gold); background: rgba(212,168,83,.08); }
.radio-card-inner:hover { border-color: var(--gold); }
.radio-icon { font-size: 1.5rem; }
.radio-label { font-weight: 500; font-size: .9rem; }
.radio-price { font-size: .8rem; color: var(--text-dim); }
.radio-desc { font-size: .75rem; color: var(--text-dim); }

/* ===== FAQ ===== */
.faq { padding: 80px 0 40px; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border); padding: 16px 0;
}
.faq-item summary {
    font-weight: 500; cursor: pointer; padding: 4px 0;
    list-style: none; display: flex; justify-content: space-between;
}
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { color: var(--text-dim); padding-top: 12px; font-size: .95rem; }

/* ===== Flash ===== */
.flash-container { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 200; }
.flash {
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: .9rem; margin-bottom: 8px; animation: fadeIn .3s;
}
.flash-success { background: rgba(34,197,94,.15); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.flash-error { background: rgba(239,68,68,.15); color: var(--error); border: 1px solid rgba(239,68,68,.3); }

/* ===== Footer ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.footer-copy { color: var(--text-dim); font-size: .85rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .company-grid { grid-template-columns: 1fr; }
    .radio-cards { flex-wrap: wrap; }
    .radio-card { min-width: calc(33% - 8px); }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .nav-inner { padding: 0 16px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
