﻿@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap");

:root {
  --bg: #0f1319;
  --surface: #18212b;
  --surface-2: #222f3d;
  --line: #34485d;
  --text: #ecf2f8;
  --muted: #a7b6c5;
  --accent: #f4b400;
  --accent-2: #3dd9b2;
  --danger: #ef5350;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, #1f3447, transparent 45%),
    radial-gradient(circle at 80% -10%, #3d2e26, transparent 35%),
    var(--bg);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 21, 0.7);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  gap: 1rem;
  position: relative;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-subtitle {
  font-weight: 700;
  color: #d6e1ec;
  font-size: 1.35rem;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Fraunces", serif;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.4rem;
}

.lang-switch a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.lang-switch a.active {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  padding: 2.4rem 0 1.2rem;
  animation: rise 0.45s ease-out;
}

.hero h1,
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.1;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero p {
  color: var(--muted);
  max-width: 72ch;
}

.hero-center {
  text-align: center;
}

.hero-center p {
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.card h3 {
  margin-top: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 26, 34, 0.85);
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 0.62rem 0.7rem;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

button,
.btn {
  cursor: pointer;
  background: linear-gradient(120deg, #2b3a4c, #223042);
  border-color: #4a6178;
  text-decoration: none;
  display: inline-block;
  width: auto;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
}

button.primary,
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #f08c00);
  border-color: #f3a402;
  color: #121212;
}

button.ghost,
.btn.ghost {
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.model-actions button {
  min-width: 120px;
}

button.active-model {
  outline: 2px solid var(--accent-2);
  outline-offset: 0;
}

.platform-options-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  margin: 0.9rem 0;
  background: rgba(24, 33, 43, 0.45);
}

.platform-options-toggle {
  margin: 0.9rem 0;
}

.platform-options-toggle summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: rgba(24, 33, 43, 0.65);
  font-weight: 700;
}

.platform-options-toggle summary::-webkit-details-marker {
  display: none;
}

.platform-options-toggle[open] summary {
  border-color: var(--accent-2);
}

.platform-options-wrap h3 {
  margin: 0 0 0.7rem;
}

.platform-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.platform-option-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(12, 20, 29, 0.7);
}

.platform-option-card h4 {
  margin: 0 0 0.5rem;
}

.checkbox-line label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checkbox-line input[type="checkbox"] {
  width: auto;
}

.kpi {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.kpi > div {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0.8rem;
  min-width: 180px;
}

.notice {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  margin: 0.9rem 0;
  border: 1px solid transparent;
}

.notice-ok {
  background: rgba(61, 217, 178, 0.12);
  border-color: rgba(61, 217, 178, 0.5);
}

.notice-error {
  background: rgba(239, 83, 80, 0.13);
  border-color: rgba(239, 83, 80, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.6rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem 0 1.8rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .card {
    grid-column: span 6;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

  .card {
    grid-column: span 12;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .platform-options-grid {
    grid-template-columns: 1fr;
  }
}
