/* === ByteHaus — Warm, confident, Sketch-inspired === */

:root {
  --bg: #FAFAF9;
  --bg-white: #FFFFFF;
  --bg-warm: #F5F3EF;
  --bg-dark: #1A1A1A;
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.1);
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-dim: #999999;
  --text-white: #FAFAFA;
  --text-white-muted: #A0A0A0;
  --accent: #5B4CDB;
  --accent-hover: #4A3CC8;
  --accent-light: #7B6FE6;
  --accent-bg: rgba(91, 76, 219, 0.06);
  --green: #1DB954;
  --amber: #E8910C;
  --gradient-mesh: linear-gradient(135deg, rgba(200, 180, 255, 0.3) 0%, rgba(255, 200, 200, 0.2) 50%, rgba(200, 230, 255, 0.2) 100%);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 2px 40px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 60px rgba(0,0,0,0.06);
  --shadow-img: 0 20px 60px rgba(0,0,0,0.1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text);
}

.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: white;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1.1rem;
  background: var(--text);
  color: white;
  font-weight: 600; font-size: 0.85rem;
  border-radius: 100px;
}
.nav-cta:hover { background: #333; color: white; }

/* === Hero === */
.hero {
  padding: 9rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(200, 180, 255, 0.25) 0%, rgba(255, 200, 200, 0.15) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200, 230, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-text { max-width: 560px; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-cta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.hero-visual {
  position: relative;
}

.hero-screenshots {
  position: relative;
  height: 420px;
}

.hero-screenshots img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-img);
  border: 1px solid var(--border);
}

.hero-screenshots img:nth-child(1) {
  width: 85%; top: 0; left: 0; z-index: 2;
}

.hero-screenshots img:nth-child(2) {
  width: 60%; bottom: 0; right: -10%; z-index: 3;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s ease;
  border: none; cursor: pointer;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #333; color: white; }

/* === Sections === */
.section { max-width: var(--max-width); margin: 0 auto; padding: 7rem 2rem; }

.section-full { padding: 7rem 2rem; }
.section-full-inner { max-width: var(--max-width); margin: 0 auto; }

.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-dark .section-label { color: var(--accent-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

.section-dark .section-subtitle { color: var(--text-white-muted); }

.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* === Product Showcase (Sketch-style: huge screenshots + text) === */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.showcase-reverse { direction: rtl; }
.showcase-reverse > * { direction: ltr; }

.showcase-text { max-width: 440px; }

.showcase-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.showcase-text h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.showcase-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.section-dark .showcase-text p { color: var(--text-white-muted); }

.showcase-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.showcase-feature {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--accent);
}

.section-dark .showcase-feature { background: rgba(123, 111, 230, 0.15); color: var(--accent-light); }

.showcase-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; font-size: 0.95rem;
  color: var(--accent);
}
.showcase-link:hover { gap: 0.55rem; color: var(--accent-hover); }

.showcase-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-img);
  border: 1px solid var(--border);
}

/* === Testimonial / Quote (Sketch-style card) === */
.quote-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quote-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.quote-card cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Logo Bar === */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.logo-bar span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* === Process Cards === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.process-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.section-dark .process-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.section-dark .process-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.section-dark .process-num { color: var(--accent-light); }

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .process-card p { color: var(--text-white-muted); }

/* === Identity Section (Sketch-style "Made by a different kind of company") === */
.identity {
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

.identity::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.identity-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.identity-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.identity-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 560px;
}

.identity-inner .accent-link {
  color: var(--accent);
  font-weight: 600;
}
.identity-inner .accent-link:hover { color: var(--accent-hover); }

/* === Stats Bar === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.section-dark .stat-num { color: var(--accent-light); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.section-dark .stat-label { color: var(--text-white-muted); }

/* === Terminal === */
.terminal {
  max-width: 700px; margin: 3rem auto 0;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-img);
}

.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #EF4444; }
.terminal-dot:nth-child(2) { background: #F59E0B; }
.terminal-dot:nth-child(3) { background: #22C55E; }

.terminal-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  color: #A0A0A0;
}

.terminal-content .cmd { color: #1DB954; }
.terminal-content .comment { color: #555; }
.terminal-content .output { color: #E0E0E0; }

/* === CTA Banner === */
.cta-banner {
  text-align: center;
  padding: 6rem 2rem;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* === Blog === */
.blog-list { list-style: none; }
.blog-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.blog-item:first-child { padding-top: 0; }
.blog-item time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.blog-item h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 0.5rem 0; }
.blog-item h2 a { color: var(--text); }
.blog-item h2 a:hover { color: var(--accent); }
.blog-item p { color: var(--text-muted); font-size: 0.95rem; }

/* === Post === */
.post { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.post-header { margin-bottom: 3rem; }
.post-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.post-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.75rem; }
.post-subtitle { color: var(--text-muted); font-size: 1.15rem; margin-top: 0.75rem; }
.post-author { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.post-author-name { font-weight: 600; font-size: 0.95rem; }
.post-author-title { font-size: 0.85rem; color: var(--text-muted); }
.post-author-title::before { content: '·'; margin-right: 0.5rem; }
.blog-author { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-top: 0.25rem; }
.post-content h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.post-content p { color: var(--text-muted); margin-bottom: 1.25rem; }
.post-content code { font-family: var(--font-mono); background: var(--bg-warm); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.post-content pre { background: var(--bg-dark); color: #E0E0E0; border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }
.post-content ul, .post-content ol { color: var(--text-muted); margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }

/* === Product Page === */
.product-page { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.product-header { text-align: center; margin-bottom: 3rem; }
.product-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 100px; background: var(--accent-bg); color: var(--accent); margin-bottom: 1rem; }
.product-header h1 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; }
.product-tagline { color: var(--text-muted); font-size: 1.15rem; margin-top: 0.75rem; }
.product-content h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.product-content p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* === Page === */
.page-content { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.page-content h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 2rem; }
.page-content p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  background: var(--bg);
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tagline { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.75rem; line-height: 1.6; }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.footer-col a { color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p { color: var(--text-dim); font-size: 0.75rem; }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .showcase { grid-template-columns: 1fr; gap: 3rem; }
  .showcase-reverse { direction: ltr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.5rem; }
  .section, .section-full { padding: 5rem 1.5rem; }
  .section-full-inner { padding: 0; }
  .nav-links { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .identity-inner h2 { font-size: 2.2rem; }
}

/* Alpha badge */
.alpha-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 100px; background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); margin-left: 0.75rem; vertical-align: middle; }

/* Section header centered */
.section-header-center { text-align: center; margin-bottom: 3rem; }
.section-header-center h2 { margin-bottom: 0.5rem; }
.section-header-center .section-subtitle { color: var(--text-light); max-width: 480px; margin: 0 auto; }

/* Product card grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.product-card { display: flex; gap: 1.25rem; padding: 2rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s; }
.product-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }
.product-card-icon { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.product-card-body { flex: 1; min-width: 0; }
.product-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.product-card-header h3 { margin: 0; font-size: 1.2rem; }
.product-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.55; margin-bottom: 0.75rem; }
.product-card .showcase-features { margin-bottom: 0.75rem; }
.product-card-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; text-align: center; }
  .product-card-header { justify-content: center; }
}
