/* ============================================================
   OPENCLAWD — MAIN STYLESHEET
   File: css/style.css

   TABLE OF CONTENTS
   -----------------
   1.  CSS Variables (Design Tokens)
   2.  Reset & Base
   3.  Typography Helpers
   4.  Layout Utilities
   5.  Background FX (Canvas, Orbs)
   6.  Navigation
   7.  Buttons
   8.  Section Shared Styles
   9.  Hero Section
   10. Hero — Clawdbot Card
   11. Services Section
   12. OpenClawd Section
   13. How It Works Section
   14. Testimonials Section
   15. Blog Preview (Bento Grid)
   16. Contact Section
   17. Footer
   18. Animations & Scroll Reveal
   19. Responsive / Mobile
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES — Edit these to retheme the whole site
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-base:       #0B0E14;   /* Main page background */
  --bg-surface:    #0f1420;   /* Slightly lighter sections */
  --bg-card:       #141924;   /* Card backgrounds */

  /* Brand Colors */
  --cyan:          #00D2FF;   /* Primary accent — headers, links, icons */
  --cyan-dim:      rgba(0, 210, 255, 0.12);
  --cyan-glow:     rgba(0, 210, 255, 0.40);
  --lime:          #39FF14;   /* CTA buttons — high contrast action color */
  --purple:        #BC13FE;   /* Secondary accent — variety, highlights */

  /* Text */
  --text-white:    #FFFFFF;
  --text-gray:     #A0AEC0;   /* Body text */
  --text-muted:    #718096;   /* Labels, meta info */

  /* UI */
  --border:        rgba(255, 255, 255, 0.07);
  --border-cyan:   rgba(0, 210, 255, 0.25);

  /* Fonts */
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing & Shape */
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;

  /* Transitions */
  --ease:          0.3s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Text selection highlight */
::selection {
  background: var(--cyan);
  color: var(--bg-base);
}


/* ============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================ */
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Cyan highlight inside headings: wrap word in <em> */
h1 em,
h2 em {
  font-style: normal;
  color: var(--cyan);
}

.subtext {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 540px;
}

/* Small horizontal divider under section headings */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  margin: 1.4rem 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

/* Outer padding for all major sections */
.section-pad {
  padding: 100px 8%;
}

/* Centered intro text block used at the top of sections */
.section-intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Generic 2-column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}


/* ============================================================
   5. BACKGROUND FX
   ============================================================ */

/* Neural network canvas — rendered by js/neural.js */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Blurred gradient spheres for atmospheric depth */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.orb--cyan   { width: 600px; height: 600px; background: var(--cyan);   top: -200px;  left: -100px; opacity: 0.18; }
.orb--purple { width: 500px; height: 500px; background: var(--purple); bottom: -150px; right: -100px; opacity: 0.18; animation-duration: 25s; animation-direction: alternate-reverse; }
.orb--lime   { width: 400px; height: 400px; background: var(--lime);   top: 50%;     left: 50%; transform: translate(-50%, -50%); opacity: 0.07; animation-duration: 30s; }

@keyframes orbDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}

/* Sits above the canvas/orbs — all page content goes here */
.page-wrapper {
  position: relative;
  z-index: 1;
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(11, 14, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

/* Logo */
.nav__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}
.nav__logo--accent { color: var(--cyan); }
.nav__logo--dot    { color: var(--lime); }

/* Nav links list */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gray);
  position: relative;
  transition: color var(--ease);
}

/* Animated underline on hover */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.nav__link:hover { color: var(--text-white); }
.nav__link:hover::after { transform: scaleX(1); }

/* CTA button inside nav */
.nav__link--cta {
  background: var(--lime);
  color: var(--bg-base) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover  { box-shadow: 0 0 20px rgba(57, 255, 20, 0.5); transform: translateY(-1px); }

/* Hamburger — visible on mobile only */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-white);
  transition: var(--ease);
}


/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--lime);
  color: var(--bg-base);
}
.btn--primary:hover {
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.55);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
}
.btn--secondary:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 18px var(--cyan-glow);
}

.btn--full { width: 100%; justify-content: center; }


/* ============================================================
   8. SECTION SHARED STYLES
   ============================================================ */
.section--dark    { background: var(--bg-base); }
.section--surface { background: var(--bg-surface); }


/* ============================================================
   9. HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 120px 8% 80px;
}

/* Left column — headline + CTAs */
.hero__content { max-width: 580px; }

/* "Live" status badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.8s ease both;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(57, 255, 20, 0); }
}

.hero__title {
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero__sub {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Stats row under the CTA buttons */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.8rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.hero__stat-num span { color: var(--cyan); }

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Right column — Clawdbot card */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}


/* ============================================================
   10. HERO — CLAWDBOT GLASSMORPHISM CARD
   ============================================================ */
.clawd-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 60px rgba(0, 210, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Top glowing border line */
.clawd-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Window chrome row (red/yellow/green dots) */
.clawd-card__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #ffbd2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}
/* Blinking cursor before title */
.chrome-title::before {
  content: '▶ ';
  animation: blink 1.4s step-end infinite;
}

/* Data stream rows — live process feed */
.data-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.stream-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 10px 14px;
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

/* Scanline sweep animation on each row */
.stream-row::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.08), transparent);
  animation: scanline 3s linear infinite;
}
.stream-row:nth-child(2)::before { animation-delay: 0.8s; }
.stream-row:nth-child(3)::before { animation-delay: 1.6s; }

@keyframes scanline { to { left: 200%; } }

/* Colored type tags on stream rows */
.stream-tag {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.stream-tag--order { background: rgba(0, 210, 255, 0.15); color: var(--cyan); }
.stream-tag--inv   { background: rgba(188, 19, 254, 0.15); color: var(--purple); }
.stream-tag--email { background: rgba(57, 255, 20, 0.12);  color: var(--lime); }

.stream-text {
  color: var(--text-gray);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(57, 255, 20, 0.1);
  color: var(--lime);
  border: 1px solid rgba(57, 255, 20, 0.25);
  white-space: nowrap;
}

/* Metric boxes */
.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.metric-box__val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}
.metric-box__val small {
  font-size: 0.75rem;
  color: var(--cyan);
}

.metric-box__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Progress bars */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-item__header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.progress-item__header span:last-child { color: var(--cyan); }

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 2s ease;
}


/* ============================================================
   11. SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: default;
}

/* Subtle gradient overlay on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.service-card:hover::after { opacity: 1; }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card__desc {
  color: var(--text-gray);
  font-size: 0.88rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.service-card__tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 10px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   12. OPENCLAWD SECTION
   ============================================================ */
.oc-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.oc-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--ease), background var(--ease);
}
.oc-feature:hover {
  border-color: rgba(0, 210, 255, 0.3);
  background: rgba(0, 210, 255, 0.04);
}

.oc-feature__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.oc-feature__title {
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.oc-feature__desc {
  font-size: 0.83rem;
  color: var(--text-gray);
}

/* Terminal-style visual */
.terminal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 210, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  position: relative;
}
.terminal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.terminal-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.terminal-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-chrome span:nth-child(1) { background: #ff5f57; }
.terminal-chrome span:nth-child(2) { background: #ffbd2e; }
.terminal-chrome span:nth-child(3) { background: #28c840; }

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
}

.terminal-line { display: flex; gap: 10px; }
.t-prompt  { color: var(--lime); }
.t-command { color: var(--text-white); }
.t-out     { color: var(--text-gray); padding-left: 1ch; }
.t-out--cyan   { color: var(--cyan); }
.t-out--lime   { color: var(--lime); }
.t-out--purple { color: var(--purple); }

/* Blinking cursor on last terminal line */
.t-cursor::after {
  content: '█';
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}


/* ============================================================
   13. HOW IT WORKS SECTION
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

/* Connecting dashed line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.step {
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.step__num {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 255, 0.3);
  background: rgba(0, 210, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step__desc {
  color: var(--text-gray);
  font-size: 0.83rem;
  line-height: 1.65;
}


/* ============================================================
   14. TESTIMONIALS SECTION
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.testi-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testi-stars { color: #ffd700; font-size: 0.8rem; margin-bottom: 10px; }

.testi-quote-mark {
  font-size: 3rem;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.4;
  font-family: Georgia, serif;
}

.testi-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--bg-base);
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
}
.testi-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }


/* ============================================================
   15. BLOG PREVIEW — BENTO GRID
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}

/* Grid placement for each card type */
.blog-card--featured  { grid-column: span 7; grid-row: span 2; }
.blog-card--medium    { grid-column: span 5; }
.blog-card--small     { grid-column: span 4; }

.blog-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform 0.25s, box-shadow var(--ease);
  cursor: pointer;
}
.blog-card:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

/* Category pill */
.blog-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}
.blog-cat--auto   { background: rgba(0, 210, 255, 0.12); color: var(--cyan); }
.blog-cat--ai     { background: rgba(188, 19, 254, 0.12); color: var(--purple); }
.blog-cat--ecom   { background: rgba(57, 255, 20, 0.10);  color: var(--lime); }
.blog-cat--guide  { background: rgba(255, 183, 0, 0.12);  color: #ffb700; }

/* Title sizing per card type */
.blog-card--featured h3 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.blog-card--medium  h3  { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.blog-card--small   h3  { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px;  }

.blog-card p { color: var(--text-gray); font-size: 0.85rem; line-height: 1.65; }
.blog-card--featured p { font-size: 0.93rem; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.blog-meta__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-base);
  flex-shrink: 0;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap 0.2s;
}
.blog-card:hover .blog-read-more { gap: 10px; }

/* Decorative corner glow on cards */
.card-glow {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.15;
  pointer-events: none;
}
.card-glow--cyan   { background: var(--cyan); }
.card-glow--purple { background: var(--purple); }
.card-glow--lime   { background: var(--lime); }


/* ============================================================
   16. CONTACT SECTION
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.contact-info__title em { font-style: normal; color: var(--cyan); }
.contact-info p { color: var(--text-gray); font-size: 0.93rem; line-height: 1.8; margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}
.contact-detail__icon { font-size: 1.3rem; }
.contact-detail__label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }
.contact-detail__value { font-size: 0.9rem; color: var(--text-white); margin-top: 2px; }

/* The form card */
.contact-form-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Two-column row inside form */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 1.2rem;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form__input,
.form__textarea,
.form__select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select option { background: var(--bg-card); }

/* Success message shown after form submit */
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  color: var(--lime);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}
.form-success__icon { font-size: 3rem; display: block; margin-bottom: 12px; }


/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 8% 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .footer__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer__logo span { color: var(--cyan); }

.footer__brand p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color var(--ease);
}
.footer__col a:hover { color: var(--cyan); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--text-muted); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--ease), border-color var(--ease);
}
.social-links a:hover {
  background: var(--cyan-dim);
  border-color: rgba(0, 210, 255, 0.4);
}


/* ============================================================
   18. ANIMATIONS & SCROLL REVEAL
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scroll-triggered reveal — class added by IntersectionObserver in js/animations.js */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   19. RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  /* Stack hero to single column */
  #hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .hero__visual { display: none; } /* Hide card on tablet */

  /* Stack OpenClawd layout */
  .two-col {
    grid-template-columns: 1fr;
  }
  .terminal-card { order: -1; } /* Terminal above text on mobile */

  /* Footer 2-column */
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile nav — hidden until hamburger clicked */
  .nav__links {
    display: none;
    position: fixed;
    top: 70px; inset-inline: 0;
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav__links.is-open { display: flex; }
  .nav__hamburger { display: flex; }

  .section-pad { padding: 70px 6%; }

  /* Bento grid: all cards full width */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .blog-card--featured,
  .blog-card--medium,
  .blog-card--small {
    grid-column: span 1;
  }

  /* Steps 2 columns */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-grid::before { display: none; }

  /* Contact stack */
  .contact-layout { grid-template-columns: 1fr; }
  .form__row       { grid-template-columns: 1fr; }

  /* Footer stack */
  .footer__top   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__btns  { flex-direction: column; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .steps-grid  { grid-template-columns: 1fr; }
}
