/* ============================================================
   SMAGTRONICS GLOBAL DESIGN SYSTEM — Enterprise Style (2025)
   Theme: Light Corporate (Smagtronics / SmagWell)
          Dark High-Tech (SmagRack)
   Typography: Poppins (Headings), Inter (Body)
   ============================================================ */

/* -------- Google Fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* -------- Root Variables -------- */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Light Theme */
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --bg-section: #f0f4f9;

  --text-dark: #0b1220;
  --text-muted: #6d7b8a;
  --text-light: #ffffff;

  /* Dark Theme (SmagRack) */
  --rack-bg: #0d1117;
  --rack-bg-alt: #151b23;
  --rack-card: rgba(255,255,255,0.04);
  --rack-border: rgba(255,255,255,0.08);
  --rack-text: #e8ecf1;

  /* Brand Colors */
  --brand-blue: #00c9ff;
  --brand-bronze: #a46b30;
  --brand-cyan: #00e0ff;
  --brand-indigo: #4158d0;

  /* Effects */
  --shadow-soft: 0 4px 18px rgba(0,0,0,0.08);
  --shadow-card: 0 6px 24px rgba(0,0,0,0.12);
  --glass: rgba(255,255,255,0.55);
  --radius: 14px;
}

/* -------- Reset -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 32px 20px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

header {
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
}

.brand-tag {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 14px;
}

.logo-lg { height: 80px; }
.logo-sm { height: 48px; }
.logo-inline { height: 46px; }

/* NAVIGATION */
nav a {
  margin-left: 16px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-dark);
  transition: 0.2s;
}

nav a:hover {
  color: var(--brand-indigo);
  text-shadow: 0 0 12px rgba(65,88,208,0.25);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 20px;
}

.hero h1, 
.hero h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

.hero h1 { font-size: 38px; }
.hero h2 { font-size: 32px; margin-bottom: 14px; }

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: 0.25s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-blue));
  color: var(--text-light);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--brand-indigo);
  color: var(--brand-indigo);
}

.btn-outline:hover {
  background: var(--brand-indigo);
  color: white;
}

/* ============================================================
   CARDS (LIGHT THEME)
   ============================================================ */

.card {
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */

.features-grid {
  margin-top: 32px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    background: var(--card-bg);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    
    /* FIX FOR BUTTON ALIGNMENT */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 260px;      /* Same height for all cards */
}


.feature-card .btn {
    margin-top: auto;
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */

.video-wrap {
  margin-top: 22px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrap video {
  width: 100%;
  border-radius: var(--radius);
}

/* ============================================================
   CONTACT STRIP
   ============================================================ */

.contact-strip {
  margin-top: 40px;
  background: var(--bg-section);
  padding: 22px 30px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-strip h3 {
  font-family: var(--font-heading);
  font-size: 22px;
}

.contact-strip p {
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--bg-white);
  padding: 24px 0;
  margin-top: 50px;
  border-top: 1px solid #e0e6ef;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   ------------------------------------------------------------
                 SMAGRACK DARK MODE SECTION
   ------------------------------------------------------------
   ============================================================ */

.smagrack-dark {
  background: var(--rack-bg);
  color: var(--rack-text);
}

.smagrack-hero {
  background: linear-gradient(135deg, #0d1117, #0b0f14 60%, #000);
  padding: 60px 20px;
  border-bottom: 1px solid var(--rack-border);
}

.smagrack-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 16px;
}

.smagrack-hero p {
  color: #9fb4c9;
  font-size: 18px;
}

.ipdu-grid {
  margin-top: 40px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ipdu-card {
  background: var(--rack-card);
  border: 1px solid var(--rack-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 0 22px rgba(0,0,0,0.35);
  transition: 0.25s;
}

.ipdu-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 30px rgba(0,229,255,0.25);
}

.ipdu-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

/* ============================================================
   TABLES
   ============================================================ */

.spec-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th {
  background: var(--brand-indigo);
  color: white;
  padding: 14px;
  font-weight: 600;
}

.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e1ec;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .header-grid { flex-direction: column; }
  nav a { margin: 0 10px; }
}

@media(max-width: 640px) {
  .brand-title { font-size: 20px; }
  .hero h1 { font-size: 30px; }
  .contact-strip { flex-direction: column; gap: 16px; }
}
