/* ===========================
   LOOPWORK DIGITAL — Web Design & AI Automation Studio
   Placeholder brand: swap "LOOPWORK DIGITAL" and colors below to rebrand.
=========================== */

:root {
  --bg: #08090d;
  --bg-elevated: #0f1119;
  --surface: #14161f;
  --surface-hover: #1b1e2b;
  --border: #232634;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #e9eaf2;
  --text-muted: #9195a8;
  --text-dim: #5c6072;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-gradient: linear-gradient(120deg, #6ee7ff 0%, #a78bfa 55%, #f472b6 100%);
  --accent-solid: #7dd3fc;
  --success: #4ade80;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px -20px rgba(110, 231, 255, 0.15);
  --max-width: 1160px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% -10%, rgba(110,231,255,0.10), transparent 40%),
    radial-gradient(500px circle at 85% 10%, rgba(167,139,250,0.10), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08090d;
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #08090d;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(110, 231, 255, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.18);
}

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  max-width: 880px;
  margin: 24px auto 22px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 76px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
}
.hero-stat .label {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; z-index: 1; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 18px 0 16px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16.5px;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 20%, rgba(255,255,255,0.015) 80%, transparent);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110,231,255,0.25);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Portfolio ---------- */
.work-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,0.3);
}
.work-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
}
.work-thumb .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.work-body { padding: 24px; }
.work-body h3 { font-size: 17px; margin-bottom: 6px; }
.work-body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.work-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: rgba(110,231,255,0.35);
  background: linear-gradient(180deg, rgba(110,231,255,0.06), var(--surface) 40%);
  box-shadow: var(--shadow-glow);
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #08090d;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.price-card .amount {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  margin: 14px 0 4px;
}
.price-card .amount span {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
}
.price-card .amount span.original {
  font-size: 22px;
  text-decoration: line-through;
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 10px;
}
.badge-founding {
  background: rgba(74, 222, 128, 0.12) !important;
  color: var(--success) !important;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.founding-banner {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 14px 24px;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.06);
  font-size: 14px;
  color: var(--text-muted);
}
.founding-banner strong {
  color: var(--accent);
}
.founding-slots {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.price-card .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(110,231,255,0.3);
  background: rgba(110,231,255,0.06);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
}
.quote-card p.quote {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 22px;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}
.quote-author .name { font-size: 14.5px; font-weight: 600; }
.quote-author .role { font-size: 13px; color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at 50% 0%, rgba(110,231,255,0.12), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-top: 20px;
}
.form-success.show { display: block; }
.form-success.error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.contact-grid {
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: 14px; }

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.post-thumb {
  height: 170px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}
article.post {
  max-width: 720px;
  margin: 0 auto;
}
article.post h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 20px 0 18px; }
article.post .post-hero {
  height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  margin: 32px 0;
}
article.post p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 20px;
}
article.post h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text);
}
article.post ul { margin: 0 0 20px; padding-left: 0; }
article.post ul li {
  color: var(--text-muted);
  font-size: 16px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
article.post ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* thumb gradients */
.thumb-1 { background: linear-gradient(135deg, #1a1f36, #0f2438); }
.thumb-2 { background: linear-gradient(135deg, #241a36, #38103f); }
.thumb-3 { background: linear-gradient(135deg, #10241f, #0f3838); }
.thumb-4 { background: linear-gradient(135deg, #241a1a, #381f10); }
.thumb-5 { background: linear-gradient(135deg, #1a2436, #221038); }
.thumb-6 { background: linear-gradient(135deg, #1a3624, #103828); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
  margin-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 260px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin: 20px 0 16px;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    border-bottom: 1px solid var(--border-soft);
    gap: 20px;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
  .cta-band { padding: 48px 24px; }
}
