/* =============================================================
   C-Systems — styles.css
   ============================================================= */


/* -------------------------------------------------------------
   1. DESIGN TOKENS (CSS custom properties)
   ------------------------------------------------------------- */

:root {
  --bg:       #060A12;
  --surface:  #0D1421;
  --surface2: #111B2E;
  --border:   rgba(56, 120, 255, 0.15);
  --accent:   #3878FF;
  --accent2:  #00D4AA;
  --orange:   #E8720C;
  --text:     #E8EDF5;
  --muted:    #7A8BA6;
  --heading:  #F0F5FF;
  --grid:     rgba(56, 120, 255, 0.06);
}


/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}


/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--heading);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .75rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}


/* -------------------------------------------------------------
   4. LAYOUT — sections
   ------------------------------------------------------------- */

section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}


/* -------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(6, 10, 18, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--heading);
  letter-spacing: .04em;
}

.nav-logo-text span { color: var(--orange); }

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .2s;
}

nav ul a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: .4rem 1.1rem;
  border-radius: 4px;
}


/* -------------------------------------------------------------
   6. HAMBURGER & MOBILE NAV
   ------------------------------------------------------------- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 64px;
  right: 0;
  width: 240px;
  background: rgba(13, 20, 33, .97);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 10px;
  z-index: 99;
  padding: 1.5rem 0;
  transform: translateX(100%);
  transition: transform .3s ease, visibility .3s;
  visibility: hidden;
  overflow: hidden;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav ul li a {
  display: block;
  padding: .85rem 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}

.mobile-nav ul li a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.mobile-nav .mob-cta {
  margin: .75rem 1.5rem 0;
  display: block;
  padding: .65rem 1rem;
  text-align: center;
  border-radius: 4px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}


/* -------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  font-size: .95rem;
  transition: opacity .2s, transform .2s;
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text);
  padding: .85rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 500;
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* -------------------------------------------------------------
   8. HERO SECTION
   ------------------------------------------------------------- */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: min(700px, 120vw);
  height: min(700px, 120vw);
  background: radial-gradient(ellipse, rgba(56, 120, 255, .18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: -10%; left: 20%;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(ellipse, rgba(0, 212, 170, .1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 1;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent2);
  flex-shrink: 0;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}


/* -------------------------------------------------------------
   9. CAPABILITIES SECTION
   ------------------------------------------------------------- */

#capabilities { background: var(--surface); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cap-card {
  background: var(--surface);
  padding: 2rem 2rem 2.5rem;
  transition: background .25s;
}

.cap-card:hover { background: var(--surface2); }

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(232, 114, 12, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.cap-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .6rem;
}

.cap-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
}


/* -------------------------------------------------------------
   10. SERVICES SECTION
   ------------------------------------------------------------- */

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-item {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .2s;
}

.service-item:hover { border-color: rgba(56, 120, 255, .4); }

.service-num {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .6rem;
}

.service-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
}


/* -------------------------------------------------------------
   11. TECH STACK SECTION
   ------------------------------------------------------------- */

#tech { background: var(--surface); }

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
}

.pill {
  padding: .45rem 1rem;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s, color .2s;
}

.pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.pill.hl {
  background: rgba(232, 114, 12, .1);
  border-color: rgba(232, 114, 12, .4);
  color: #F5A35A;
}


/* -------------------------------------------------------------
   12. SECURITY SECTION
   ------------------------------------------------------------- */

#security { background: var(--bg); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.sec-card {
  padding: 2rem;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .2s;
}

.sec-card:hover { border-color: rgba(0, 212, 170, 0.5); }

.sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 212, 170, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .6rem;
}

.sec-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
}


/* -------------------------------------------------------------
   13. EXPERTISE SECTION
   ------------------------------------------------------------- */

#expertise { background: var(--surface); }

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3.5rem;
}

.expertise-visual {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.exp-year {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.exp-year:last-child { margin-bottom: 0; }

.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(56, 120, 255, .6);
}

.exp-dot.orange {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(232, 114, 12, .6);
}

.exp-yr {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.exp-ev {
  font-size: .88rem;
  color: var(--text);
}


/* -------------------------------------------------------------
   14. CUSTOMERS SECTION
   ------------------------------------------------------------- */

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.customer-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .2s;
}

.customer-card:hover { border-color: rgba(232, 114, 12, .4); }

.customer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--orange);
  letter-spacing: .08em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.customer-text {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
}


/* -------------------------------------------------------------
   15. CONTACT SECTION
   ------------------------------------------------------------- */

#contact {
  text-align: center;
  padding: 120px 5%;
}

.contact-box {
  max-width: 580px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 114, 12, .1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-box p {
  color: var(--muted);
  font-size: 1rem;
  margin: .75rem 0 2rem;
}

.contact-email {
  display: inline-block;
  color: var(--orange);
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 114, 12, .4);
  padding-bottom: 2px;
  margin-bottom: 2rem;
  transition: border-color .2s;
}

.contact-email:hover { border-color: var(--orange); }


/* -------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------- */

footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }


/* -------------------------------------------------------------
   17. ANIMATIONS
   ------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------------------------------------------
   18. RESPONSIVE — tablet (≤960px)
   ------------------------------------------------------------- */

@media (max-width: 960px) {
  .customer-grid  { grid-template-columns: repeat(2, 1fr); }
  .cap-grid       { grid-template-columns: repeat(2, 1fr); }
  .security-grid  { grid-template-columns: repeat(2, 1fr); }
}


/* -------------------------------------------------------------
   19. RESPONSIVE — mobile (≤768px)
   ------------------------------------------------------------- */

@media (max-width: 768px) {
  nav ul          { display: none; }
  .hamburger      { display: flex; }

  #hero           { padding: 88px 5% 60px; min-height: auto; }
  h1              { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero-sub       { font-size: .95rem; }
  .hero-stats     { gap: 1.25rem; margin-top: 2.5rem; }
  .hero-stats > div { min-width: calc(50% - .75rem); }
  .hero-actions   { flex-direction: column; }
  .hero-actions a { text-align: center; }

  .services-layout   { grid-template-columns: 1fr; }
  .expertise-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-box       { padding: 2.5rem 1.5rem; }
  .customer-grid     { grid-template-columns: 1fr; }
  .cap-grid          { grid-template-columns: 1fr; }
  .security-grid     { grid-template-columns: 1fr; }
}
