/* ============================================
   CloudForge — Clean Tech Theme
   ============================================ */

:root {
  --bg: #0b0d11;
  --bg-2: #111318;
  --bg-card: #151720;
  --bg-card-hover: #1a1c28;
  --border: #1f2233;
  --border-hover: #2d3048;
  --text: #e2e4ed;
  --text-2: #8b8fa6;
  --text-3: #505470;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --pink: #ec4899;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple));
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ---- Container ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Nav
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(11,13,17,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: .04em;
}
.logo:hover { color: var(--text); }
.logo-img {
  height: 36px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
}
.nav-content .logo {
  margin-right: 16px;
  flex-shrink: 0;
}

.nav-links { display: flex; list-style: none; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: .875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .2s, color .2s;
}
.nav-cta:hover { border-color: var(--cyan) !important; color: var(--cyan) !important; }
.lang-switch {
  font-family: var(--mono) !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  padding: 5px 12px !important;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2) !important;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--cyan) !important; color: var(--cyan) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-2); transition: .3s; }

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

/* Background effects */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .15;
}
.glow-1 { width: 600px; height: 600px; background: var(--cyan); top: -200px; right: -100px; }
.glow-2 { width: 500px; height: 500px; background: var(--purple); bottom: -150px; left: -100px; }

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--text-2);
  background: rgba(21,23,32,.7);
  margin-bottom: 32px;
}
.dot-live {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-sub {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--text-3);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.hero-privacy {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 64px;
  opacity: .6;
  font-style: italic;
}

/* Terminal */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 520px;
  margin-bottom: 36px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: rgba(31,34,51,.6);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-title { font-family: var(--mono); font-size: .7rem; color: var(--text-3); margin-left: 8px; }
.terminal-body {
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--cyan);
  min-height: 44px;
}
.prompt { color: var(--purple); margin-right: 8px; }
.cursor { animation: blink 1s step-end infinite; color: var(--text-2); }
@keyframes blink { 50% { opacity: 0; } }

/* Buttons */
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none;
  font-family: var(--font);
  transition: transform .2s, box-shadow .3s;
}
.btn-primary {
  background: var(--gradient);
  color: #000;
}
.btn-primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,255,.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  white-space: nowrap;
}
.btn-outline:hover { background: var(--cyan); color: #000; }

/* Book a call CTA */
.book-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(6,182,212,.07);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.book-cta-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.book-cta-icon { font-size: 1.6rem; line-height: 1; }
.book-cta-text strong { display: block; color: var(--text); margin-bottom: .2rem; }
.book-cta-text p { margin: 0; font-size: .875rem; color: var(--text-2); }

/* Metrics */
.hero-metrics {
  display: flex; align-items: stretch; gap: 0;
}
.metric {
  display: flex; flex-direction: column;
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.metric:first-child { padding-left: 0; text-align: left; }
.metric:last-child { border-right: none; padding-right: 0; }
.metric strong {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.metric-suffix { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--cyan); }
.metric small { font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.metric-divider { display: none; }

/* ============================================
   Shared section styles
   ============================================ */
section { padding: 100px 0; }
.tag {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--cyan);
  letter-spacing: .08em;
  margin-bottom: 10px;
}
section > .container > h2, .contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 48px;
}

/* ============================================
   Service Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  transition: transform .3s, border-color .3s, background .3s;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: var(--gradient);
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.card:hover::before { opacity: 1; }

.card-featured { border-color: rgba(0,212,255,.18); }
.card-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; font-weight: 700;
  padding: 4px 12px;
  background: var(--gradient); color: #000;
  border-radius: 100px;
}

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(0,212,255,.07);
  border: 1px solid rgba(0,212,255,.14);
  color: var(--cyan);
  margin-bottom: 18px;
}

.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card > p { color: var(--text-2); font-size: .88rem; margin-bottom: 18px; line-height: 1.6; }

.card-list {
  list-style: none;
  margin-bottom: 18px;
}
.card-list li {
  font-size: .84rem;
  color: var(--text-2);
  padding: 3px 0;
}
.card-list li::before {
  content: '\2713';
  color: var(--cyan);
  margin-right: 8px;
  font-size: .78rem;
}

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-tags span {
  font-family: var(--mono);
  font-size: .68rem;
  padding: 4px 10px;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.18);
  border-radius: 6px;
  color: var(--purple);
}

/* ============================================
   Licensing Banner
   ============================================ */
.license-banner {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.license-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.license-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.license-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(0,212,255,.07);
  border: 1px solid rgba(0,212,255,.14);
  color: var(--cyan);
  flex-shrink: 0;
}
.license-text { flex: 1; }
.license-text h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 8px;
}
.license-text p {
  color: var(--text-2); font-size: .9rem; line-height: 1.7;
}
.license-content .btn {
  flex-shrink: 0;
  align-self: center;
}
.license-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.license-tags span {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 5px 12px;
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.14);
  border-radius: 6px;
  color: var(--cyan);
}

@media (max-width: 860px) {
  .license-content {
    flex-direction: column;
  }
  .license-content .btn { align-self: flex-start; }
}

/* ============================================
   Tech Stack
   ============================================ */
.stack { background: var(--bg-2); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.stack-group h4 {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-chip {
  font-family: var(--mono);
  font-size: .78rem;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.stack-chip:hover { border-color: var(--cyan); color: var(--cyan); }

.certs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.cert {
  font-size: .8rem;
  color: var(--text-2);
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ============================================
   Approach / Steps
   ============================================ */
.steps { max-width: 680px; margin: 0 auto; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex; gap: 28px;
  padding: 28px 0;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 56px;
  text-align: center;
  position: relative; z-index: 1;
}
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { color: var(--text-2); font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.step-tags { font-family: var(--mono); font-size: .72rem; color: var(--text-3); letter-spacing: .04em; }

/* ============================================
   Contact
   ============================================ */
.contact { background: var(--bg-2); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { text-align: left; }
.contact-info > p { color: var(--text-2); margin: 14px 0 32px; line-height: 1.7; }

.contact-meta { display: flex; flex-direction: column; gap: 16px; }
.contact-meta > div { display: flex; flex-direction: column; gap: 2px; }
.contact-meta small {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .8rem; font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23505470' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 96px; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-left p { color: var(--text-3); font-size: .8rem; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-3); font-size: .84rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: .74rem;
  color: var(--text-3);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ============================================
   Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.at-sign { font-size: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 20px; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,13,17,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.1rem; }
  .hero-metrics { flex-direction: column; align-items: flex-start; gap: 14px; }
  .metric-divider { display: none; }
  .certs { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
