:root {
  --bg: #0b0f14;
  --card: #121823;
  --muted: #8fa0b7;
  --txt: #e9f0fb;
  --accent: #7dd3fc;
  --accent2: #a7f3d0;
  --danger: #fb7185;
  --ok: #34d399;
  --line: #233044;
  --r: 14px;
  --w: 1100px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #070a0f, #0b0f14);
  color: var(--txt);
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
header {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
}

.header-content {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
  border: 1px solid #2a3a52;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: #0f1520;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.brand-text .tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  background: #0f1520;
  color: var(--txt);
  text-decoration: none;
}

nav a.active {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.lang-switcher {
  display: flex;
  gap: 6px;
  margin-left: 10px;
}

.lang-switcher button {
  border: 1px solid var(--line);
  background: #0f1520;
  color: var(--txt);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.lang-switcher button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

/* Main Content */
main {
  padding: 40px 18px 60px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

.hero .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(18, 24, 35, 0.95), rgba(18, 24, 35, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--accent);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #0f1520;
  color: var(--txt);
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.15), rgba(167, 243, 208, 0.15));
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}

.btn.primary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.2);
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #0f1520;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0f1520;
  font-weight: 700;
  font-size: 12px;
}

.badge.success {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--ok);
}

.badge.accent {
  border-color: rgba(125, 211, 252, 0.35);
  color: var(--accent);
}

/* Dividers */
.hr {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* Notes */
.note {
  background: #0f1520;
  border: 1px dashed #2a3a52;
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Tables */
.table-container {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

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

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 12px;
  color: var(--muted);
  background: #0f1520;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(125, 211, 252, 0.03);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Tier Cards */
.tier {
  border: 1px solid var(--line);
  background: #0f1520;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}

.tier:hover {
  border-color: var(--accent);
}

.tier .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent2);
}

.tier .price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.tier strong {
  font-size: 16px;
}

.tier ul {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--accent);
}

/* Utility Classes */
.muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.text-accent2 {
  color: var(--accent2);
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  nav {
    display: none;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Form Styles */
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f1520;
  color: var(--txt);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #4a5568;
}

select {
  cursor: pointer;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Tier Options */
.tier-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-option:hover {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.03);
}

.tier-option.selected {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.tier-option input[type="radio"] {
  width: auto;
  margin-right: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.tier-option .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent2);
}

/* Integration Selector */
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #0f1520;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.counter .badge {
  min-width: 28px;
  height: 28px;
}

.integration-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  cursor: pointer;
}

.integration-row:hover {
  background: rgba(125, 211, 252, 0.03);
}

.integration-row:last-child {
  border-bottom: none;
}

.integration-row input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.integration-row input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.integration-row .num {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1520;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.integration-row .name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.integration-row .details {
  color: var(--muted);
  font-size: 13px;
}

/* Checkbox Items */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checkbox-item:last-child {
  border-bottom: none;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-item .text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-item .text strong {
  color: var(--txt);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Messages */
.success-msg,
.error-msg {
  display: none;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.success-msg {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--ok);
}

.error-msg {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: var(--danger);
}

/* Sidebar Card */
.sidebar-card {
  position: sticky;
  top: 100px;
}
