/* ===== CloudEdge — base styles ===== */

:root {
  --ink: #f5f5f7;
  --ink-soft: #a3a3ac;
  --bg: #0b0b0d;
  --bg-alt: #141417;
  --bg-alt-2: #101012;
  --card-bg: #1b1b1f;
  --line: rgba(255,255,255,0.10);
  --dark-bg: #0b0b0d;
  --dark-bg-2: #2a2a2e;
  --white: #ffffff;
  --white-soft: rgba(255,255,255,0.72);
  --white-faint: rgba(255,255,255,0.14);
  --radius: 14px;
  --container: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #ffffff; color: #111114; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--white-soft);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 44px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--white);
  color: #111114;
}
.btn-primary:hover { background: #e9e9ec; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,13,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--white); }

.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, rgba(8,8,10,0.12), rgba(8,8,10,0.58)), url('../assets/img/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 130px 0 110px;
}
.hero-inner { max-width: 780px; }
.hero h1 { color: var(--white); }
.hero-sub {
  font-size: 1.12rem;
  color: var(--white-soft);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Services ===== */
.services { padding: 100px 0; background: var(--bg-alt); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--white);
  color: #111114;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { color: var(--ink); }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ===== About ===== */
.about { padding: 100px 0; background: var(--bg-alt-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about h2 { color: var(--ink); }
.about-copy p:last-child { margin-bottom: 0; }
.about-highlight {
  background: var(--white);
  color: #111114;
  border-radius: var(--radius);
  padding: 34px 30px;
}
.about-highlight-text {
  color: #111114;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* ===== Process ===== */
.process { padding: 100px 0; background: var(--bg-alt); }
.process h2 { color: var(--ink); }
.process-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.process-steps li { position: relative; padding-top: 8px; border-top: 2px solid rgba(255,255,255,0.28); }
.process-steps h3 { color: var(--ink); }
.step-num {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.process-steps p { font-size: 0.96rem; margin-bottom: 0; }

/* ===== Contact ===== */
.contact {
  background: linear-gradient(180deg, rgba(6,6,8,0.35), rgba(6,6,8,0.65)), url('../assets/img/footer-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact h2 { color: var(--white); }
.contact .section-lead { color: var(--white-soft); margin: 0 auto 36px; }
.contact-email {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  padding-bottom: 4px;
  margin-bottom: 40px;
}
.contact-email:hover { border-color: var(--white); }

.contact-meta {
  color: var(--white-soft);
  font-size: 0.92rem;
  margin: 18px 0 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}
.social-links a {
  color: var(--white-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.social-links a:hover { color: var(--white); }

/* ===== Footer ===== */
.site-footer { background: var(--dark-bg); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 20px; opacity: 0.9; }
.footer-nav { display: flex; gap: 22px; margin-left: auto; }
.footer-nav a { color: var(--white-soft); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 100%; color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 18px 0 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11,11,13,0.98);
    padding: 18px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero { padding: 100px 0 80px; }
  .services, .about, .process, .contact { padding: 70px 0; }
  .footer-nav { gap: 16px; }
}
