/* ================================================================
   Ozekai — Shared Styles
   ================================================================ */

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

:root {
  --bg:          #0d0f14;
  --surface:     #161a23;
  --surface2:    #1e2433;
  --border:      #2a3048;
  --accent:      #7c6af7;
  --accent-glow: rgba(124, 106, 247, 0.35);
  --accent2:     #48c9b0;
  --text:        #eef0f6;
  --muted:       #8892a8;
  --danger:      #f06a6a;
  --success:     #4ad991;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #6a59e0;
  box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }

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

/* ── Hero ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero-badge {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── Plans grid ───────────────────────────────────── */
.plans-section {
  padding: 2rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plans-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plans-section .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

.plans-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  width: 480px;
  max-width: 100%;
}

.plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-name { font-size: 1.2rem; font-weight: 700; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.plan-price .period { color: var(--muted); font-size: 0.9rem; }

.plan-desc { color: var(--muted); font-size: 0.92rem; }

.plan-gpu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--accent2);
  font-weight: 600;
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-features li {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 700; }

.plan-card .btn { width: 100%; margin-top: auto; }

/* ── Skeleton loader ──────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ── Checkout / form pages ────────────────────────── */
.page-center {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
}

.card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
.card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }

/* ── Form elements ────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.18s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder { color: var(--muted); opacity: 0.6; }

/* ── Plan summary box in checkout ─────────────────── */
.plan-summary {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}
.plan-summary .ps-name { font-weight: 700; }
.plan-summary .ps-price { color: var(--accent2); font-weight: 700; }

/* ── Alert / error ────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
  margin-top: 1rem;
}
.alert.show { display: block; }
.alert-error  { background: rgba(240,106,106,0.12); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(74,217,145,0.12); border: 1px solid var(--success); color: var(--success); }

/* ── Success / cancel pages ───────────────────────── */
.status-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'Fira Mono', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  color: var(--accent2);
  overflow-x: auto;
  margin: 0.75rem 0;
}

/* ── Features section ─────────────────────────────── */
.features-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.features-section h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 2.5rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}

.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.88rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 0.75rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .card { padding: 1.75rem 1.25rem; }
}
