/* ===== Cloud Portal Styles — MultiAI Team (EU) ===== */

:root {
  --color-primary: #0066cc;
  --color-primary-dark: #004d99;
  --color-accent: #00a8ff;
  --color-bg: #0b0e17;
  --color-surface: #111520;
  --color-text: #e8edf5;
  --color-muted: #7a8ba5;
  --color-green: #10b981;
  --color-red: #ef4444;
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-gold: #f59e0b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --border-radius: 8px;
  --shadow-card: 0 4px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(0,130,80,.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ---- Navbar / Header ---- */
.navbar {
  background: linear-gradient(135deg, #0b0e17 0%, #1a1e30 100%);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e2436;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .7; }

/* ---- Glassmorphism card ---- */
.glass-card {
  background: rgba(17, 21, 32, .7);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,130,80,.25);
  padding: 1.5rem;
  margin: 1rem 0;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0e1220 0%, #1a2235 100%);
  color: var(--color-text);
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: .5rem;
}
.hero p {
  font-size: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--color-muted);
}
.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
  color: #fff;
  padding: .85rem 2.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s;
  display: inline-block;
  margin-top: 1rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #004d99 0%, #003d88 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,.3);
}

/* ---- Pillars ---- */
.pillars {
  background: var(--color-surface);
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid #1e2436;
}
.pillar {
  margin: 0.75rem auto;
  max-width: 900px;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--border-radius);
  background: var(--color-surface);
  border: 1px solid rgba(0,130,80,.15);
}
.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: var(--color-accent);
}
.pillar p {
  font-size: .95rem;
  color: var(--color-muted);
}

/* ---- Pricing Section ---- */
.pricing {
  background: var(--color-surface);
  padding: 3rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}
.currency-selector {
  display: flex;
  gap: .5rem;
  margin: 1.5rem 0;
}
.currency-btn {
  padding: .55rem 1.25rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
  transition: all .2s;
}
.currency-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.plan-switcher {
  display: flex;
  gap: .5rem;
  margin: 1.5rem 0;
}
.plan-btn {
  padding: .55rem 1.25rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
  transition: all .2s;
}
.plan-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tier {
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tier h3 {
  font-size: 1rem;
  margin: .5rem 0;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .25rem;
}
.description {
  font-size: .85rem;
  color: var(--color-muted);
  margin-top: .25rem;
}
.tier-cta {
  width: 100%;
  padding: .7rem 1rem;
  font-size: .85rem;
  margin-top: 1rem;
}

.promo-box {
  background: linear-gradient(135deg, rgba(254,243,199,.12), rgba(252,211,77,.12));
  border: 1px solid rgba(252,211,77,.4);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--color-text);
}
.promo-box h3 {
  margin: 0 0 .5rem;
  color: var(--color-gold);
}
.promo-box input, .vat-input {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: .75rem;
}
.issued-token {
  background: #050811;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: .75rem;
  overflow-x: auto;
  font-size: .78rem;
  color: #34d399;
  min-height: 2.2rem;
}
.promo-actions {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
#redeem-promo { font-weight: 600; }
.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  padding: .65rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
}
.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }

.promo-message {
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--color-accent);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg);
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
  color: var(--color-muted);
}

/* ---- Language Toggle ---- */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  padding: .5rem 1rem;
  cursor: pointer;
  color: var(--color-text);
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--color-primary); color: #fff; }
.lang-toggle.active { background: var(--color-primary); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem 2rem; }
  .nav-links { gap: .5rem; }
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* ===== European VAT Reverse-Charge ===== */
.vat-box { margin: 1.25rem 0; }
.vat-input { margin-top: .35rem; }
.vat-label { font-size: .85rem; color: var(--color-muted); margin-bottom: .35rem; display: block; }
.vat-status { font-size: .85rem; min-height: 1.25rem; }
.vat-status.ok { color: var(--color-green); font-weight: 600; }
.vat-status.err { color: var(--color-red); }
.tier-features { font-size: .8rem; color: var(--color-accent); margin-top: .5rem; font-weight: 600; }

/* ---- Ecosystem / Deals ---- */
.ecosystem { padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.deal-card { background: var(--color-bg); border: 1px solid rgba(255,255,255,.08); border-radius: var(--border-radius); padding: 1.25rem; }
.deal-card.featured { border-color: var(--color-accent); }
.deal-badge { display: inline-block; background: var(--color-primary); color: #fff; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; margin: .5rem 0; }
.deal-agent { display: block; font-size: .8rem; color: var(--color-muted); margin: .5rem 0; }
.deal-link { display: inline-block; margin-top: .75rem; color: var(--color-accent); text-decoration: none; font-weight: 600; }

/* ---- Referral ---- */
.referral-box { background: var(--color-surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--border-radius); padding: 1.5rem; margin: 1.5rem 0; }
.ref-banner { background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .4); color: #34d399; padding: .5rem .75rem; border-radius: 6px; font-size: .85rem; margin-bottom: .75rem; }
.ref-row { display: flex; gap: .5rem; margin: .75rem 0; }
.ref-row input, .ref-link { padding: .6rem .8rem; border-radius: var(--border-radius); border: 1px solid var(--color-muted); background: var(--color-bg); color: var(--color-text); }
.ref-row input { flex: 1; }
.ref-link { width: 100%; margin-top: .5rem; }
.ref-message { margin-top: .5rem; color: var(--color-accent); font-size: .9rem; }

/* ---- Guided Instant Checkout Modal ---- */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1rem;
}
.checkout-modal-backdrop[hidden] { display: none; }
.checkout-modal {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .65);
}
.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.checkout-modal-header h3 { margin: 0; color: #38bdf8; font-size: 1.1rem; }
.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-note { font-size: .88rem; color: #cbd5e1; margin: 0 0 1rem; }
.modal-label { display: block; font-size: .8rem; color: #94a3b8; margin: .65rem 0 .25rem; }
.modal-input {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #020617;
  color: #f8fafc;
}
.modal-inline { display: flex; gap: .5rem; align-items: center; }
.modal-inline .btn-primary, .modal-inline .btn-secondary { margin-top: 0; white-space: nowrap; padding: .6rem 1rem; }
.modal-badge {
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #34d399;
  border-radius: 6px;
  padding: .4rem .65rem;
  font-size: .8rem;
  margin: .5rem 0;
}
.modal-actions { text-align: center; margin-top: 1rem; }

/* ---- 4 Core Differentiators heading ---- */
.pillars-heading {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

/* ---- 1-Command Autopilot Workflow ---- */
.one-command-section {
  padding: 3.25rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.one-command-title {
  margin: 0 0 .65rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  color: #f8fafc;
}
.one-command-sub {
  margin: 0 auto 1.5rem;
  max-width: 720px;
  color: var(--color-muted);
}
.one-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.workflow-card {
  text-align: left;
  background: linear-gradient(160deg, rgba(15, 23, 42, .95), rgba(30, 41, 59, .75));
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 14px;
  padding: 1.15rem 1.1rem 1.25rem;
}
.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .55rem;
}
.workflow-title {
  margin: 0 0 .4rem;
  font-size: 1rem;
  color: #7dd3fc;
}
.workflow-desc {
  margin: 0;
  font-size: .88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ---- Donate (warm, non-intrusive) ---- */
.donate-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  text-align: center;
}
.donate-section h2 { margin: 0 0 .5rem; }
.donate-sub { color: var(--color-muted); max-width: 640px; margin: 0 auto 1.25rem; }
.donate-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.donate-tier-card {
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .32);
  border-radius: 12px;
  padding: 1rem .85rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, border-color .15s;
}
.donate-tier-card:hover { transform: translateY(-2px); border-color: #fbbf24; }
.donate-tier-amount { display: block; font-size: 1.25rem; font-weight: 700; color: #fbbf24; margin-bottom: .25rem; }
.donate-tier-label { font-size: .88rem; color: #e2e8f0; }
.donate-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin-top: .75rem;
}
.donate-badge-row .issued-token {
  min-width: min(320px, 100%);
  margin: 0;
  text-align: left;
}
.donate-more { margin-top: .85rem; }
.donate-more a { color: #38bdf8; text-decoration: none; font-weight: 600; }

/* ---- Partner AI Perks ---- */
.partner-perks-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}
.partner-perks-sub { color: var(--color-muted); margin: 0 auto 1rem; max-width: 640px; }
.partner-context-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.partner-context-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.partner-context-btn.active,
.partner-context-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
}
.partner-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
  text-align: left;
}
.partner-perk-card {
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem;
}
.partner-perk-card h3 { margin: 0 0 .35rem; font-size: 1rem; color: #f8fafc; }
.partner-perk-card p { margin: 0 0 .65rem; font-size: .85rem; color: #94a3b8; }
.partner-perk-card a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  font-size: .85rem;
}
.partner-disclosure {
  margin: 1rem auto 0;
  max-width: 820px;
  font-size: .75rem;
  color: #64748b;
  line-height: 1.5;
}

/* ---- Windows Download ---- */
.download-section {
  background: linear-gradient(160deg, #0b1220 0%, #122033 55%, #0f1a2a 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid #1e2436;
  border-bottom: 1px solid #1e2436;
}
.download-section h2 { margin: 0 0 .5rem; font-size: 1.75rem; }
.download-section > p { color: var(--color-muted); max-width: 560px; margin: 0 auto 1.5rem; }
.download-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: rgba(15, 23, 42, .85);
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 14px;
}
.download-cta {
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
  margin-top: 0;
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 .75rem;
}
.download-version {
  background: rgba(56, 189, 248, .16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, .35);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .85rem;
  font-weight: 700;
}
.download-badge {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .85rem;
  font-weight: 600;
}
.sha-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin-top: .5rem;
}
.sha-label {
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: help;
}
.sha-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  background: #020617;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .45rem .7rem;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sha-pill:hover { border-color: #38bdf8; color: #e2e8f0; }
.download-sha-hint { font-size: .78rem; color: var(--color-muted); margin: .65rem 0 0; }

/* ---- Windows SmartScreen 2-Step Guide ---- */
.smartscreen-guide {
  margin-top: 1.15rem;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .10), rgba(16, 185, 129, .08));
  border: 1px solid rgba(56, 189, 248, .28);
}
.smartscreen-guide-title {
  margin: 0 0 .45rem;
  font-size: .98rem;
  color: #7dd3fc;
  font-weight: 700;
}
.smartscreen-guide-body {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.smartscreen-guide-body strong { color: #f8fafc; }
.smartscreen-guide-steps {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.smartscreen-guide-steps li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(2, 6, 23, .55);
  border: 1px solid #334155;
  border-radius: 999px;
  padding: .35rem .75rem .35rem .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: #e2e8f0;
}
.smartscreen-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

/* ---- Activation banner ---- */
.activation-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, .18), rgba(56, 189, 248, .14));
  border-bottom: 1px solid rgba(52, 211, 153, .35);
  padding: .85rem 1.25rem;
}
.activation-banner[hidden] { display: none; }
.activation-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.activation-banner-inner p { margin: .2rem 0 0; color: #cbd5e1; font-size: .9rem; }
.activation-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.activation-banner-actions .btn-primary { margin-top: 0; padding: .65rem 1.1rem; font-size: .9rem; }
