/* ===== Tivax.dev — Stylesheet ===== */
:root {
  --white: #ffffff;
  --blue-50: #f0f7ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink: #0f172a;
  --muted: #475569;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, var(--blue-100) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, var(--blue-200) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--blue-50) 0%, transparent 45%),
    var(--white);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Falling stars canvas */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Layout container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(191, 219, 254, 0.6);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue-700);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue-700);
  transition: transform .2s, box-shadow .2s;
}
.lang-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.lang-toggle .flag { font-size: 1.05rem; }

.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--blue-700); }

/* ===== Hero ===== */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
  box-shadow: var(--shadow);
  animation: fadeUp .7s ease both;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 26px 0 20px;
  animation: fadeUp .7s ease .1s both;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue-600), #6ea8ff 60%, var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 38px;
  animation: fadeUp .7s ease .2s both;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s ease .3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 52px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title h2 .grad {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title p { color: var(--muted); margin-top: 12px; }

/* Services grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(96,165,250,.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: grid; place-items: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; position: relative; }
.card p { color: var(--muted); font-size: 0.95rem; position: relative; }

/* Pricing / order note */
.order-note {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.order-note h3 { font-size: 1.5rem; margin-bottom: 14px; }
.order-note p { color: var(--muted); margin-bottom: 24px; }
.order-note .features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 20px 0 28px;
  list-style: none;
}
.order-note .features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}
.order-note .features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 800;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  box-shadow: var(--shadow);
}
.contact-card.discord .icon { background: linear-gradient(135deg, #5865F2, #7289da); }
.contact-card.mail .icon { background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-bottom: 22px; }
.contact-card .value {
  display: inline-block;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 22px;
}

/* Terms */
.terms-wrap {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}
.terms-wrap h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--blue-700); }
.terms-wrap h2:first-child { margin-top: 0; }
.terms-wrap h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.terms-wrap p, .terms-wrap li { color: var(--muted); margin-bottom: 10px; }
.terms-wrap ul { padding-left: 22px; }
.terms-wrap strong { color: var(--ink); }
.warning-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  color: #92400e;
}
.warning-box strong { color: #78350f; }

/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
  background: rgba(255,255,255,0.5);
  text-align: center;
  position: relative;
  z-index: 2;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer .footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
footer .footer-links a:hover { color: var(--blue-700); }
footer p { color: var(--muted); font-size: 0.85rem; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,.05); }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 70px; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--blue-100);
    width: 220px;
    padding: 24px;
    gap: 18px;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .menu-btn { display: block; }
  .hero { padding: 70px 0 60px; }
}