/* ==========================================================================
   Kinet Networks — Main Stylesheet
   Colour Theme: Plum Purple (#8B5CF6)
   ========================================================================== */

/* ── Custom Properties ───────────────────────────────────────────────── */
:root {
  --plum: #8B5CF6;
  --plum-light: #A78BFA;
  --plum-dark: #6D28D9;
  --plum-deeper: #4C1D95;
  --plum-glow: rgba(139, 92, 246, 0.25);

  --bg-primary: #0F0A1A;
  --bg-secondary: #161125;
  --bg-card: #1C1630;
  --bg-card-hover: #241E3A;
  --bg-alt: #120D20;

  --text-primary: #F5F3FF;
  --text-secondary: #B4ADC8;
  --text-muted: #7A7299;

  --border: #2D264A;
  --border-light: #3D3658;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--plum-glow);

  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--plum-light); background: rgba(139, 92, 246, 0.12);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.2; color: var(--text-primary);
  margin-bottom: 16px; letter-spacing: -0.02em;
}

.section-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition); cursor: pointer; border: none;
}

.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 4px 20px var(--plum-glow); }
.btn-primary:hover { background: var(--plum-dark); box-shadow: 0 6px 28px var(--plum-glow); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-light); }
.btn-outline:hover { border-color: var(--plum); color: var(--plum-light); background: rgba(139, 92, 246, 0.06); }

.btn-full { width: 100%; padding: 16px; font-size: 1rem; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: var(--nav-height); transition: all var(--transition);
}

.nav-scrolled {
  background: rgba(15, 10, 26, 0.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.03em;
}
.logo-icon { color: var(--plum); }

.nav-links-desktop { display: flex; align-items: center; gap: 32px; }

.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color var(--transition); }
.nav-link:hover { color: var(--text-primary); }

.nav-cta { background: var(--plum); color: #fff !important; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; }
.nav-cta:hover { background: var(--plum-dark); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.nav-toggle span.open:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle span.open:nth-child(2) { opacity: 0; }
.nav-toggle span.open:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
  background: rgba(15, 10, 26, 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
}
.nav-mobile a { display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: color var(--transition); }
.nav-mobile a:hover { color: var(--plum-light); }
.nav-mobile a:last-child { margin-top: 8px; border-bottom: none; color: var(--plum-light); font-weight: 600; }

[x-cloak] { display: none !important; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 80px; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, var(--plum-glow) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(109, 40, 217, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 50%, rgba(76, 29, 149, 0.12) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; text-align: center; }

.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--plum-light); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 8px 20px; border-radius: 100px; margin-bottom: 28px;
}

.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }

.hero-highlight { color: var(--plum); background: linear-gradient(135deg, var(--plum-light), var(--plum-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.logo-highlight { color: var(--plum); background: linear-gradient(135deg, var(--plum-light), var(--plum-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

.hero-stat {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  min-width: 180px;
  transition: all var(--transition);
}

.hero-stat:hover {
  border-color: var(--plum);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.hero-stat-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-sm);
  margin: 0 auto 14px;
  color: var(--plum-light);
}

.hero-stat-icon svg { width: 20px; height: 20px; }

.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--plum-light), var(--plum-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.service-card:hover { border-color: var(--plum); background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.service-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, 0.12); border-radius: var(--radius); margin-bottom: 20px; color: var(--plum-light); }
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

.service-features { display: flex; flex-direction: column; gap: 8px; }
.service-features li { font-size: 0.82rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.service-features li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--plum); border-radius: 50%; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gallery-item { cursor: pointer; border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item:hover .gallery-caption { color: var(--plum-light); }
.gallery-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.placeholder-img { width: 100%; height: auto; display: block; }
.gallery-caption { font-size: 0.85rem; color: var(--text-muted); padding: 12px 4px; transition: color var(--transition); }

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; transition: all var(--transition); }
.testimonial-card:hover { border-color: var(--plum); background: var(--bg-card-hover); }

.testimonial-stars { font-size: 0.95rem; color: #f59e0b; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--plum-dark)); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, 0.1); border-radius: var(--radius-sm); flex-shrink: 0; color: var(--plum-light); }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item span { font-size: 0.95rem; color: var(--text-primary); line-height: 1.5; }

.contact-form-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }

.form-group input, .form-group textarea {
  background: var(--bg-secondary); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 0.95rem; font-family: var(--font-body); color: var(--text-primary);
  transition: all var(--transition); resize: vertical; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-glow); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.input-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 2px; }

/* Turnstile widget */
.turnstile-group { align-items: flex-start; }
.turnstile-group .cf-turnstile { margin-top: 4px; }

/* Success state */
.contact-success { text-align: center; padding: 24px 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: #22c55e; }
.success-icon svg { width: 100%; height: 100%; }
.contact-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.contact-success p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-top: 16px; max-width: 280px; }

.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 0.9rem; color: var(--text-secondary); padding: 4px 0; transition: color var(--transition); }
.footer-grid a:hover { color: var(--plum-light); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Lightbox ────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; }

.lightbox-close { position: absolute; top: 20px; right: 28px; font-size: 2rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; line-height: 1; transition: color var(--transition); }
.lightbox-close:hover { color: #fff; }

.lightbox-content { width: 100%; max-width: 900px; border-radius: var(--radius); overflow: hidden; }
.lightbox-inner svg { width: 100%; height: auto; border-radius: var(--radius); }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.service-card, .testimonial-card, .gallery-item { animation: fadeInUp 0.5s ease both; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .hero-stats { gap: 16px; }
  .hero-stat { min-width: 140px; padding: 20px 16px 16px; }
  .hero-stat .hero-stat-num { font-size: 1.25rem; }
  .hero-stat .hero-stat-label { font-size: 0.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-stat { min-width: unset; }
  .contact-form-wrapper { padding: 24px; }
}
