/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0a192f;
  --navy2:  #112240;
  --blue:   #1e3a5f;
  --cyan:   #00b4d8;
  --cyan2:  #0096c7;
  --light:  #ccd6f6;
  --muted:  #8892b0;
  --white:  #e6f1ff;
  --card:   #112240;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--navy);
  color: var(--light);
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,25,47,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,180,216,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-logo {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px;
  color: var(--white);
}
.nav-logo span { color: var(--cyan); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-cta {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--cyan); border-radius: var(--radius);
  color: var(--cyan) !important; font-size: 0.85rem !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--cyan); color: var(--navy) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--light); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://picsum.photos/seed/serverrack/1600/900');
  background-size: cover; background-position: center;
  filter: brightness(0.25) saturate(0.6);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,25,47,0.85) 40%, rgba(0,180,216,0.1));
}
.hero-content {
  position: relative; max-width: 680px; padding: 2rem 4rem;
}
.hero-eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(0,180,216,0.4);
  padding: 0.3rem 0.8rem; border-radius: 100px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: var(--muted);
  max-width: 520px; margin-bottom: 2rem;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--cyan); color: var(--navy);
  font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius); transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--cyan2); color: var(--navy); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--cyan); color: var(--cyan);
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); transition: background 0.2s, transform 0.15s;
}
.btn-outline:hover { background: rgba(0,180,216,0.1); color: var(--white); transform: translateY(-2px); }

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
  background: var(--navy2);
  border-top: 1px solid rgba(0,180,216,0.15);
  border-bottom: 1px solid rgba(0,180,216,0.15);
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 2.5rem 2rem; gap: 2rem;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 800; color: var(--cyan);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── Section Shared ───────────────────────────────────── */
section { padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 0.6rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 0.8rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Carousel ─────────────────────────────────────────── */
.carousel-section { background: var(--navy2); }
.carousel-wrapper {
  position: relative; max-width: 900px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track { position: relative; }
.carousel-slide {
  display: none; position: relative;
}
.carousel-slide.active { display: block; }
.carousel-slide img {
  width: 100%; height: 480px; object-fit: cover;
  filter: brightness(0.85);
}
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(10,25,47,0.95));
}
.slide-caption h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.slide-caption p { font-size: 0.9rem; color: var(--muted); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,180,216,0.25);
  border: 1px solid rgba(0,180,216,0.5);
  border-radius: 50%; color: var(--white);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: var(--cyan); color: var(--navy); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 1.2rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--cyan); transform: scale(1.3); }

/* ── Feature Cards ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--card);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 10px; padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.1);
}
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 1rem;
  background: rgba(0,180,216,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* ── Products ─────────────────────────────────────────── */
.product-filters {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem;
  background: transparent; border: 1px solid var(--blue);
  color: var(--muted); border-radius: 100px;
  cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--cyan); border-color: var(--cyan);
  color: var(--navy); font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.product-card {
  background: var(--card);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--cyan); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 1px;
}
.product-info { padding: 1.5rem; }
.product-category { font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.4rem; }
.product-info h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.product-info p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--cyan); }
.product-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.btn-sm {
  flex: 1; padding: 0.55rem 1rem;
  text-align: center; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-sm.primary { background: var(--cyan); color: var(--navy); border: none; }
.btn-sm.primary:hover { background: var(--cyan2); }
.btn-sm.ghost { background: transparent; border: 1px solid var(--blue); color: var(--muted); }
.btn-sm.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Server Showcase ──────────────────────────────────── */
.server-showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 1100px; margin: 0 auto;
  align-items: center;
}
.server-showcase img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,180,216,0.15);
}
.server-text h2 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.server-text p { color: var(--muted); margin-bottom: 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--light); font-size: 0.95rem; }
.check-list li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ── About ────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 1100px; margin: 0 auto;
  align-items: center;
}
.about-img-stack { position: relative; }
.about-img-stack img:first-child {
  border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid rgba(0,180,216,0.15);
}
.about-img-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 55%; border-radius: 10px;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow);
}
.about-text .section-tag { display: block; margin-bottom: 0.75rem; }
.about-text h2 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }

/* ── Team ─────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.team-card {
  background: var(--card);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 10px; overflow: hidden; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.team-card img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.team-info { padding: 1.2rem 1rem; }
.team-info h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.2rem; }
.team-info .role { color: var(--cyan); font-size: 0.82rem; font-weight: 500; }

/* ── Contact Form ─────────────────────────────────────── */
.contact-section { background: var(--navy2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; max-width: 1000px; margin: 0 auto;
  align-items: start;
}
.contact-info h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.2rem; align-items: flex-start; }
.contact-detail .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(0,180,216,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-detail p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.contact-detail strong { color: var(--light); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--navy); border: 1px solid var(--blue);
  border-radius: var(--radius); padding: 0.7rem 1rem;
  color: var(--light); font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--cyan);
}
.form-group input.error, .form-group textarea.error { border-color: #ff6b6b; }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.error-msg { font-size: 0.78rem; color: #ff6b6b; display: none; margin-top: 2px; }
.error-msg.show { display: block; }
.form-success {
  display: none; padding: 1rem 1.5rem;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.4);
  border-radius: var(--radius); color: var(--cyan);
  font-weight: 500; text-align: center;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy2);
  border-top: 1px solid rgba(0,180,216,0.1);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; max-width: 1100px; margin: 0 auto 2.5rem;
}
.footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 0.75rem; display: inline-block; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid rgba(0,180,216,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .server-showcase,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-img-accent { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-content { padding: 2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,25,47,0.98); padding: 1.5rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-slide img { height: 280px; }
}
