/* Foo Dog Solutions — shared styles for all pages */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Michroma"; src: url(/assets/fonts/michroma-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #060a11;
  --panel: #0b121c;
  --panel-2: #0f1825;
  --line: #172234;
  --line-hi: #24344c;
  --text: #eef3f9;
  --muted: #8b9ab0;
  --accent: #1fa2ff;
  --glow: rgba(31, 162, 255, 0.14);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: "Michroma", "Eurostile", var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono.blue { color: var(--accent); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(6, 10, 17, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--brand); font-weight: 400; font-size: 17px; letter-spacing: .02em; }
.wordmark b span { color: var(--accent); }
.wordmark small { font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .42em; color: var(--muted); margin-top: 5px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 14px; }
.nav ul a:hover { color: var(--text); }
.btn-sm { border: 1px solid var(--line-hi); border-radius: 6px; padding: 7px 14px; color: var(--text); font-size: 13px; font-weight: 500; }
.btn-sm:hover { border-color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tagline i { width: 1px; height: 12px; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 24px 0 24px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 36px; }
.btn { display: inline-block; background: var(--accent); color: #031120; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(31,162,255,.4), 0 8px 30px rgba(31,162,255,.25); }
.btn:hover { background: #45b3ff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-hi); box-shadow: none; margin-left: 10px; }
.btn-ghost:hover { background: var(--panel); border-color: var(--accent); }
.served { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.served svg { color: var(--accent); flex: none; }
.emblem { position: relative; display: flex; justify-content: center; }
.emblem img { width: 100%; max-width: 460px; height: auto; position: relative; filter: drop-shadow(0 0 40px rgba(31,162,255,.18)); }
.emblem::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; filter: blur(.5px); }

/* Sections */
section { padding: 104px 0; border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 650; letter-spacing: -.025em; line-height: 1.12; margin: 14px 0 0; max-width: 660px; }
.head p { color: var(--muted); max-width: 400px; margin: 0; }

/* Experience */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats div { padding: 32px; border-right: 1px solid var(--line); background: var(--panel); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.stats div:first-child strong { color: var(--accent); }
.stats span { color: var(--muted); font-size: 15px; }
.exp-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; color: var(--muted); }
.exp-text p { margin: 0 0 16px; }
.exp-text p.lead { color: var(--text); font-size: 19px; }

/* Services */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; grid-column: span 2; transition: border-color .2s; }
.tile:hover { border-color: var(--line-hi); }
.tile.half { grid-column: span 3; }
.tile.full { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; background: radial-gradient(ellipse at 75% 50%, var(--glow), transparent 60%), var(--panel); }
.tile h3 { font-size: 17px; font-weight: 600; margin: 14px 0 8px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }

/* Philosophy */
.stack { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; background: var(--panel); }
.layer h3 { font-size: 17px; margin: 4px 0 0; font-weight: 600; }
.layer p { margin: 0; color: var(--muted); font-size: 15px; }
.layer.l3 { margin: 0 12%; border-color: rgba(31,162,255,.5); box-shadow: 0 0 30px rgba(31,162,255,.10); }
.layer.l2 { margin: 0 6%; }
.layer.l1 { background: var(--panel-2); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-hi); }
.steps div { padding: 24px 24px 0 0; position: relative; }
.steps div::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.steps h3 { font-size: 17px; font-weight: 600; margin: 10px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Contact */
.contact-box { border: 1px solid var(--line); border-radius: 16px; padding: 64px 48px; text-align: center; background: radial-gradient(ellipse at top, rgba(31,162,255,.12), transparent 60%), var(--panel); }
.contact-box img { width: 64px; height: 64px; }
.contact-box h2 { margin: 14px auto 16px; }
.contact-box p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; }
.contact-box .addr { display: block; margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Service pages */
.page-hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -15%; top: -40%; width: 70%; height: 160%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.page-hero .wrap { position: relative; }
.crumbs { margin-bottom: 32px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 16px 0 20px; max-width: 820px; }
.page-hero .lead { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.helps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.helps .tile h3 { margin-top: 0; }
.helps .tile, .related .tile { grid-column: auto; }
.callout { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 12px; padding: 40px; background: var(--panel); }
.callout h2 { margin-top: 10px; }
.callout p { color: var(--muted); max-width: 780px; margin: 14px 0 0; font-size: 17px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
a.tile { display: block; color: inherit; }
a.tile:hover { border-color: var(--accent); }
.more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.foot p { color: var(--muted); font-size: 15px; max-width: 380px; margin: 16px 0 12px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot-links .mono { grid-column: 1 / -1; margin-bottom: 4px; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .two-col, .foot { grid-template-columns: 1fr; gap: 40px; }
  .related { grid-template-columns: 1fr 1fr; }
  .hero-grid, .exp-text, .tile.full { grid-template-columns: 1fr; }
  .emblem img { max-width: 340px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.half { grid-column: span 1; }
  .tile.full { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .nav ul { display: none; }
}
@media (max-width: 600px) {
  .helps, .related { grid-template-columns: 1fr; }
  .callout { padding: 28px 20px; }
  .page-hero { padding: 40px 0 56px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .emblem { order: -1; }
  .emblem img { max-width: 240px; }
  section { padding: 72px 0; }
  .stats, .bento, .steps { grid-template-columns: 1fr; }
  .tile.full { grid-column: span 1; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .layer.l2, .layer.l3 { margin: 0; }
  .btn-ghost { margin: 10px 0 0; }
  .contact-box { padding: 40px 20px; }
}

/* About page */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.about-emblem { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: radial-gradient(closest-side, var(--glow), transparent), var(--panel); }
.about-emblem img { width: 100%; height: auto; display: block; }
.about-text { max-width: 700px; }
.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text p.lead { color: var(--text); font-size: 20px; }
.about-text h2 { font-size: 24px; margin: 40px 0 12px; }
.about-text .checks a { color: var(--text); }
.about-text .checks a:hover { color: var(--accent); }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-emblem { position: static; max-width: 240px; }
}
.foot p.foot-about { margin: 10px 0 0; }
.foot-about a { color: var(--muted); font-size: 15px; }
.foot-about a:hover { color: var(--text); }
