/* ========================
   TENSORCLOUD — DARK THEME
   ======================== */

:root {
  --bg:        #050810;
  --bg2:       #0b0f1e;
  --bg3:       #111827;
  --border:    #1e2840;
  --accent:    #6366f1;
  --accent2:   #818cf8;
  --cyan:      #22d3ee;
  --green:     #34d399;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --card-bg:   rgba(17,24,39,0.85);
  --radius:    12px;
  --glow:      0 0 40px rgba(99,102,241,0.3);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 5%;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; white-space: nowrap;
}
.logo span { color: var(--accent2); }

.nav-links {
  display: flex; gap: 1.5rem; list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--text-muted); font-weight: 500; transition: color .2s;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; border-bottom-color: var(--accent2);
}

.lang-toggle {
  display: flex; gap: .4rem;
}
.lang-toggle button {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: .3rem .7rem; border-radius: 6px;
  cursor: pointer; font-size: .8rem; font-weight: 600; transition: all .2s;
}
.lang-toggle button.active,
.lang-toggle button:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ─── HERO ─── */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 90vh; padding: 6rem 5%;
  overflow: hidden; gap: 4rem;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(99,102,241,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(34,211,238,0.08) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; flex: 1; max-width: 600px; }

.badge {
  display: inline-block; padding: .4rem 1rem; border-radius: 99px;
  border: 1px solid var(--accent); color: var(--accent2);
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
  background: rgba(99,102,241,0.1);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; padding: .85rem 2rem;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; border-radius: var(--radius); font-weight: 700;
  transition: all .25s; box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5);
  color: #fff;
}
.btn-primary.full { display: block; text-align: center; }

.btn-secondary {
  display: inline-block; padding: .85rem 2rem;
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius); font-weight: 700;
  transition: all .25s; background: rgba(255,255,255,0.04);
}
.btn-secondary:hover {
  border-color: var(--accent2); color: var(--accent2);
  background: rgba(99,102,241,0.08);
}

.btn-sm {
  display: inline-block; padding: .45rem 1.1rem;
  background: rgba(99,102,241,0.15); border: 1px solid var(--accent);
  color: var(--accent2); border-radius: 8px; font-size: .85rem;
  font-weight: 600; transition: all .2s;
}
.btn-sm:hover {
  background: var(--accent); color: #fff;
}

/* ─── HERO VISUAL ─── */
.hero-visual {
  position: relative; z-index: 1; flex-shrink: 0;
}

.server-card {
  position: relative; width: 260px; padding: 2rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; text-align: center;
  box-shadow: var(--glow);
}

.server-icon {
  font-size: 3rem; margin-bottom: 1.5rem;
  color: var(--accent2); text-shadow: 0 0 20px var(--accent);
  animation: pulse-icon 3s ease-in-out infinite;
}
@keyframes pulse-icon {
  0%,100% { text-shadow: 0 0 20px var(--accent); }
  50%      { text-shadow: 0 0 40px var(--cyan); }
}

.server-stats { display: flex; justify-content: space-around; }
.stat { display: flex; flex-direction: column; }
.stat-val { font-size: 1.3rem; font-weight: 800; color: var(--cyan); }
.stat-lbl { font-size: .75rem; color: var(--text-muted); }

.pulse-ring {
  position: absolute; inset: -8px; border-radius: 28px;
  border: 2px solid var(--accent);
  animation: ring-pulse 3s ease-out infinite;
  opacity: 0;
}
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* ─── SECTIONS COMMON ─── */
section { padding: 5rem 5%; }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
  text-align: center; margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─── FEATURES ─── */
.features { background: var(--bg2); }

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

.feature-card {
  padding: 2rem; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .25s;
}
.feature-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: var(--glow);
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); }

/* ─── HARDWARE ─── */
.hardware { background: var(--bg); }

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

.hw-card {
  position: relative; padding: 2rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .25s;
}
.hw-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.hw-card.hot   { border-color: var(--accent); }

.hw-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; padding: .25rem .8rem; border-radius: 99px; font-size: .75rem; font-weight: 700;
}
.hw-name  { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.hw-spec  { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.hw-perf  { font-size: 1rem; font-weight: 700; color: var(--cyan); margin-bottom: 1.2rem; }

/* ─── STATS ─── */
.stats {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(34,211,238,0.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-around;
  padding: 4rem 5%;
}
.stat-item { text-align: center; padding: 1rem 2rem; }
.big-num { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--cyan); }
.big-lbl { font-size: .9rem; color: var(--text-muted); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 5rem 5% 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ─── PRICING TABLE ─── */
.pricing-section { background: var(--bg2); }

.table-wrap { overflow-x: auto; }

.pricing-table {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
}
.pricing-table th {
  background: rgba(99,102,241,0.15); padding: 1rem 1.5rem;
  text-align: left; font-size: .85rem; color: var(--accent2);
  text-transform: uppercase; letter-spacing: .05em;
}
.pricing-table td { padding: .9rem 1.5rem; border-top: 1px solid var(--border); }
.pricing-table tr:hover td { background: rgba(99,102,241,0.05); }
.price { font-weight: 700; color: var(--cyan); font-size: 1rem; }

/* ─── PLANS ─── */
.plans-section { background: var(--bg); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; align-items: start;
}

.plan-card {
  position: relative; padding: 2.5rem 2rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .25s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; padding: .3rem .9rem; border-radius: 99px; font-size: .75rem; font-weight: 700;
}
.plan-name  { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--cyan); margin-bottom: 1.5rem; }
.plan-price span { font-size: 1rem; color: var(--text-muted); }

.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  padding: .5rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text-muted);
}
.plan-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ─── FAQ ─── */
.faq-section { background: var(--bg2); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; overflow: hidden;
  background: var(--card-bg);
}
.faq-item summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; color: var(--accent2); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: .95rem; }

/* ─── CONTACT ─── */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
@media(max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrap h2,
.contact-info h2 { text-align: left; margin-bottom: 1.5rem; font-size: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: .75rem 1rem; border-radius: 8px;
  font-size: .95rem; font-family: inherit; transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group select option { background: var(--bg3); }

.success-msg {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; background: rgba(52,211,153,0.1);
  border: 1px solid var(--green); border-radius: var(--radius);
  color: var(--green); font-weight: 600;
}

/* Info cards */
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.info-card {
  display: flex; gap: 1rem; padding: 1.2rem 1.5rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); align-items: flex-start;
}
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-title { font-weight: 700; margin-bottom: .2rem; }
.info-card span, .info-card a { font-size: .9rem; color: var(--text-muted); }
.info-card a:hover { color: var(--cyan); }

.data-centers {
  padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-centers h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent2); }
.dc-list { display: flex; flex-direction: column; gap: .5rem; }
.dc-item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-muted); }
.dc-dot  {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: dc-blink 2s ease-in-out infinite;
}
@keyframes dc-blink {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

/* ─── FOOTER ─── */
.footer {
  padding: 2.5rem 5%;
  background: var(--bg2); border-top: 1px solid var(--border);
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: .8rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 800; }
.footer-logo span { color: var(--accent2); }
.footer p { font-size: .85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent2); }

/* ─── RESPONSIVE ─── */
@media(max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 4rem; }
  .hero-content p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .nav-links { gap: 1rem; }
}
@media(max-width: 600px) {
  .navbar { padding: .8rem 4%; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .logo { margin-right: auto; }
}
