* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #060b17;
  --surface: #0f172a;
  --surface-soft: rgba(15, 23, 42, 0.7);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #4f46e5;
  --accent-muted: #7c3aed;
  --border: rgba(148, 163, 184, 0.25);
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(150deg, #02040a 0%, #090f22 50%, #131e39 100%);
  color: var(--text);
}

/* HEADER */

.top-header {
  width: 100%;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  backdrop-filter: blur(18px);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
  font-size: 1.6rem;
  text-decoration: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

/* HERO */

.index-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1200px, 92vw);
  margin: 44px auto;
  gap: 30px;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  max-width: 42ch;
}

.hero-left p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 24px;
}

.hero-right {
  min-height: 300px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(79,70,229,0.35), rgba(37,99,235,0.18)), url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ5VlYJ6DsmyZpZY3CjIbcWl4zMioHndyRc6A&s') center/cover no-repeat;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
}

/* FEATURES */

.features {
  width: min(1100px, 92vw);
  margin: 20px auto 60px;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #dbeafe;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* FEATURE CARDS */

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0,0,0,.45);
}

/* CONTACT */

.contact-layout {
  width: min(900px, 90vw);
  margin: 48px auto;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.contact-panel h1 {
  color: #dbeafe;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(15, 23, 42, .8);
  margin-bottom: 14px;
}

.contact-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f8fafc;
}

.contact-panel textarea {
  min-height: 160px;
}

/* FOOTER */

.site-footer {
  margin: 0 auto 40px;
  width: min(1200px, 92vw);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* AUTH / DASHBOARD */

.layout,
.dashboard-layout {
  width: min(1200px, 90vw);
  margin: 36px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.auth-panel,
.video-card,
.side-panel,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  border-radius: 20px;
  padding: 34px;
}

.auth-panel h2,
.content-panel h1,
.side-panel h2 {
  margin-bottom: 16px;
}

.auth-panel p,
.video-card p,
.side-panel p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* FORM */

.auth-panel label {
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-panel input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  background: rgba(15,23,42,.8);
  color: var(--text);
}

/* BUTTONS */

.auth-panel button,
.content-panel button,
.side-panel button,
.video-card .btn {
  margin-top: 10px;
  width: 100%;
  padding: 13px 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-muted));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-panel button:hover,
.content-panel button:hover,
.side-panel button:hover,
.video-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.28);
  
}

/* VIDEO CARD */

.video-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card .cover {
  height: 220px;
  border-radius: 16px;
  margin-bottom: 22px;
  background: linear-gradient(130deg, rgba(79,70,229,.7), rgba(37,99,235,.45)), url('https://cdn.discordapp.com/attachments/1251221431631745025/1486078905436733560/content.png?ex=69c43255&is=69c2e0d5&hm=cdadc3f671e5496855607997ec68d20c677b3f67f1832f7e8a54578ffc446c89&') center/cover no-repeat;
}

/* CONTENT */

.content-panel {
  grid-column: 1 / -1;
}

/* STATS */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.stats div {
  background: rgba(79, 70, 229, 0.1);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.stats strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.stats span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

/* DASHBOARD CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dash-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.dash-card h3 {
  margin-bottom: 8px;
}

/* PHONE */

#phone {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(148, 163, 184, .3);
}

/* RESPONSIVE */

@media (max-width: 980px) {

  .layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .content-panel {
    grid-column: 1;
  }

  .top-header {
    padding: 16px 22px;
  }

  .main-nav {
    display: none;
  }

  .index-hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    min-height: 240px;
  }

}