/* ─── House Design App Global Styles ─── */

:root {
  --bg: #fff;
  --surface: #f8faf9;
  --surface-warm: #fdf8f3;
  --text: #1a1a1a;
  --text-secondary: #555;
  --muted: #888;
  --border: #e8ebe9;
  --primary: #1a1a1a;
  --primary-hover: #333;
  --accent: #10b981;
  --accent-light: #d1fae5;
  --gradient-start: #e8f5e9;
  --gradient-mid: #f0fdf4;
  --gradient-end: #fef3e2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
}
.brand-icon {
  width: 28px; height: 28px; background: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800;
}

/* ─── NAV ─── */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-item > .nav-trigger {
  padding: 8px 14px; border-radius: 10px; font-size: .875rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all .15s; border: none; background: none;
  display: flex; align-items: center; gap: 4px; font-family: inherit;
}
.nav > a:hover, .nav > a.active, .nav-item:hover > .nav-trigger { background: var(--surface); color: var(--text); }
.nav-trigger svg { width: 12px; height: 12px; opacity: .5; }
.nav-item { position: relative; }
.nav-item::after {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 16px;
}
.mega-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; min-width: 560px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s; z-index: 200;
}
.nav-item:hover .mega-dropdown, .nav-item:focus-within .mega-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-category { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 4px; }
.mega-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  font-size: .85rem; color: var(--text-secondary); transition: all .12s;
}
.mega-link:hover { background: var(--surface); color: var(--text); }
.mega-link-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0;
}
.mega-link span { font-weight: 500; }
.btn-try {
  padding: 9px 20px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  transition: background .15s; margin-left: 8px; display: inline-block;
}
.btn-try:hover { background: var(--primary-hover); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { margin: 0 0 14px; line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-header h2 { line-height: 1.1; }
.section-header p { margin-top: 12px; color: var(--text-secondary); font-size: 1.05rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 12px;
}
.section-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.alt-bg { background: var(--surface); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-secondary); max-width: 68ch; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface); border-color: #ccc; }
.btn-hero {
  padding: 14px 28px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-hero-secondary {
  padding: 14px 24px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  background: transparent; color: var(--text); border: 1.5px solid var(--border); cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: #fff; border-color: #ccc; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── HERO ─── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 40%, var(--gradient-end) 100%);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
.hero h1 { line-height: 1.08; }
.hero-sub {
  margin-top: 16px; font-size: 1.05rem; color: var(--text-secondary); max-width: 480px; line-height: 1.6;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; align-items: center; }
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-placeholder {
  text-align: center; color: var(--muted); font-size: .9rem; padding: 40px;
}
.hero-visual-placeholder .big-icon { font-size: 4rem; margin-bottom: 12px; }

/* ─── SOCIAL PROOF BAR ─── */
.proof-bar {
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.proof-inner {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.proof-item { display: flex; align-items: center; gap: 12px; text-align: left; }
.proof-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.proof-stat { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.proof-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.proof-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── TOOL CARDS ─── */
.tools-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tools-category h3 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.tools-category h3 span { font-size: 1rem; }
.tools-list { display: flex; flex-direction: column; gap: 8px; }
.tool-card-v2 {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; transition: all .15s; cursor: pointer;
}
.tool-card-v2:hover { border-color: #ccc; box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-thumb {
  width: 56px; height: 42px; border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
  overflow: hidden;
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-info h4 { font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.tool-info p { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.tool-badge {
  font-size: .6rem; font-weight: 700; background: var(--accent-light); color: #059669;
  padding: 2px 6px; border-radius: 4px; margin-left: auto; flex-shrink: 0;
}

/* ─── STEPS ─── */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  text-align: center; padding: 32px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border);
}
.step-num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── USE CASES ─── */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase-card {
  padding: 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--border); transition: all .15s;
}
.usecase-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.usecase-icon { font-size: 2rem; margin-bottom: 14px; }
.usecase-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── TESTIMONIALS ─── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  padding: 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--border);
}
.testimonial-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-size: .9rem; color: var(--text); line-height: 1.6; margin: 0; font-style: normal;
}
.testimonial-author { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--muted);
}
.testimonial-name { font-size: .82rem; font-weight: 600; }
.testimonial-role { font-size: .75rem; color: var(--muted); }

/* ─── CONTENT BLOCKS ─── */
.content-block { max-width: 720px; margin: 0 auto; }
.content-block h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.content-block p { color: var(--text-secondary); line-height: 1.75; margin-top: 14px; }
.content-block a { color: var(--accent); font-weight: 500; }
.content-block a:hover { text-decoration: underline; }
.content-section { max-width: 780px; }
.content-section p { color: var(--text-secondary); line-height: 1.7; margin-top: 14px; }
.content-section a { color: var(--accent); font-weight: 500; }
.content-section a:hover { text-decoration: underline; }

/* ─── STYLE CARDS (subpages) ─── */
.style-card {
  display: block; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow-sm); transition: all .15s;
}
.style-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.style-card h3 { margin-bottom: 4px; }
.style-card p { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.style-card .try-link {
  display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .85rem;
}

/* ─── FEATURE LIST ─── */
.feature-list { margin: 24px 0 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex; gap: 10px; align-items: center; padding: 10px 0;
  color: var(--text-secondary); font-size: .95rem; border-bottom: 1px solid var(--border);
}
.feature-list li::before { content: "\2713"; color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* ─── FAQ ─── */
.faq { margin-top: 20px; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: #fff;
}
.faq summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer; font-size: .95rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "− "; }
.faq details p { padding: 0 20px 16px; color: var(--text-secondary); line-height: 1.6; font-size: .9rem; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--primary); border-radius: var(--radius-lg); padding: 48px;
  text-align: center; color: #fff;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.cta-banner p { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.cta-banner .btn-cta {
  margin-top: 24px; padding: 14px 32px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  background: #fff; color: var(--primary); border: none; cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
}
.cta-banner .btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ─── HIGHLIGHT (alt CTA) ─── */
.highlight {
  max-width: 820px; margin: 0 auto; padding: 36px; text-align: center;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.highlight h2 { margin-bottom: 10px; }
.highlight p { color: var(--text-secondary); max-width: 52ch; margin: 0 auto; }
.highlight .actions { justify-content: center; }

/* ─── GRIDS ─── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }

/* ─── BREADCRUMB ─── */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── TOOL ICON (large, for tool pages) ─── */
.tool-icon-lg { font-size: 3rem; margin-bottom: 16px; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand { font-size: .95rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.footer h4 {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px;
}
.footer-links a { display: block; font-size: .85rem; color: var(--text-secondary); margin-bottom: 8px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--muted);
}
.footer-inner { padding: 32px 0; text-align: center; }
.footer-inner p { color: var(--muted); font-size: .85rem; }
.footer-inner a { color: var(--text-secondary); }
.footer-inner a:hover { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav, .mega-dropdown { display: none; }
  .hero-inner, .tools-categories, .steps-row, .usecase-grid, .testimonial-grid, .footer-grid,
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  h1 { font-size: 2rem; }
  .section { padding: 48px 0; }
  .proof-inner { gap: 24px; }
  .proof-divider { display: none; }
  .cta-banner { padding: 32px 20px; }
  .highlight { padding: 24px; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
