/* ===================================================
   Qorix - Premium AI Solutions Landing Page
   Style System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────── */
:root {
  --bg:          #0A0A0A;
  --bg-card:     #111111;
  --bg-card-hover: #161616;
  --gold:        #C9A24B;
  --gold-light:  #dbb96a;
  --gold-dim:    rgba(201,162,75,0.12);
  --gold-border: rgba(201,162,75,0.22);
  --ivory:       #F5F0E6;
  --ivory-dim:   rgba(245,240,230,0.65);
  --gray:        #5A5A5A;
  --gray-light:  #888;
  --divider:     rgba(201,162,75,0.18);
  --font:        'Manrope', sans-serif;
  --radius:      4px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0A0A0A; }

a { text-decoration: none; color: inherit; }

img, svg { display: block; }

/* ── Typography ─────────────────────────────────── */
.label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.18;
  color: var(--ivory);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--ivory-dim); }

/* ── Layout Utilities ───────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--bg-card);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.9rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,75,0.28);
}

.btn--outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(245,240,230,0.3);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Fade-in on scroll ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.nav-logo__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: var(--transition);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  padding: 1.5rem 2rem;
  gap: 1.4rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }

/* =========================================
   HERO
   ========================================= */
#hero {
  padding-top: 160px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ivory-dim);
  margin-bottom: 2.6rem;
  max-width: 480px;
}

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

/* Hero Graphic */
.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero-canvas {
  width: 100%;
  max-width: 500px;
  height: 420px;
  opacity: 0.85;
}

/* =========================================
   SERVICES
   ========================================= */
#services {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header .label { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  border: 1px solid var(--divider);
}

.service-card {
  background: var(--bg);
  padding: 2.8rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--bg-card-hover); }

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.8rem;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--ivory);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}

.service-card .service-num {
  position: absolute;
  bottom: 1.6rem;
  right: 1.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-border);
}

/* =========================================
   HOW WE WORK
   ========================================= */
#how-we-work {
  padding: 110px 0;
  background: var(--bg-card);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5rem;
  position: relative;
}

/* connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: var(--divider);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 68px;
  height: 68px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  background: var(--bg-card);
  transition: var(--transition);
}
.step:hover .step-num {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.step-num span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.step h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--ivory);
}
.step p {
  font-size: 0.88rem;
  color: var(--ivory-dim);
  line-height: 1.75;
}

/* =========================================
   WHY QORIX
   ========================================= */
#why-us {
  padding: 110px 0;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.why-left h2 { margin-bottom: 1.4rem; }
.why-left p { font-size: 1rem; max-width: 400px; }

.why-points {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
  transition: var(--transition);
}
.why-point:first-child { border-top: 1px solid var(--divider); }
.why-point:hover .why-point__icon { color: var(--gold-light); }

.why-point__icon {
  color: var(--gold);
  width: 22px;
  height: 22px;
  margin-top: 2px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.why-point h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.why-point p {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  line-height: 1.75;
}

/* =========================================
   CTA BAND
   ========================================= */
#cta {
  padding: 100px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: center;
  background: var(--bg-card);
}

.cta-inner .label { margin-bottom: 1.4rem; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-inner p {
  max-width: 440px;
  margin: 0 auto 2.6rem;
  font-size: 1rem;
}

/* =========================================
   CONTACT
   ========================================= */
#contact {
  padding: 110px 0;
}

.contact-centered {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info { margin-bottom: 3rem; }
.contact-info h2 { margin-bottom: 0.9rem; }
.contact-info > p { font-size: 1rem; max-width: 420px; margin: 0 auto; }

/* WhatsApp CTA Button */
.contact-cta { margin-bottom: 2.2rem; }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 460px;
  padding: 1.3rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn--whatsapp:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(201,162,75,0.18);
}
.btn--whatsapp:hover::before { opacity: 1; }

.wa-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.wa-icon svg { width: 40px; height: 40px; }

.wa-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}
.wa-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.wa-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.wa-arrow {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.btn--whatsapp:hover .wa-arrow { transform: translateX(4px); }

.contact-note {
  font-size: 0.75rem;
  color: var(--gray-light);
  letter-spacing: 0.06em;
  margin-top: 0.9rem;
  font-style: italic;
}

/* Instagram secondary */
.contact-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.contact-or {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-link--small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.contact-link--small svg { width: 15px; height: 15px; color: var(--gold); }
.contact-link--small:hover { color: var(--gold); }




/* =========================================
   FOOTER
   ========================================= */
#footer {
  border-top: 1px solid var(--divider);
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand__logo svg { width: 28px; height: 28px; }
.footer-brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--divider);
  border-radius: 50%;
  color: var(--gray-light);
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-social a svg { width: 16px; height: 16px; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.06em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-label { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  #hero-canvas { max-width: 340px; height: 280px; margin: 0 auto; }

  .services-grid { grid-template-columns: 1fr; }

  .why-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  #hero { padding-top: 130px; padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  h1 { font-size: 2.1rem; }
  .steps-grid { grid-template-columns: 1fr; }
}
