/* Andya — static site styles. Tokens mirror the Andya design system (colors, type, spacing, elevation, motion). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-100: #DBEAFE; --brand-300: #93C5FD; --brand-600: #2563EB; --brand-700: #1D4ED8; --brand-800: #1E40AF;
  --navy: #0B1D4F; --cyan: #22D3EE;
  --neutral-50: #F8FAFC; --neutral-100: #F1F5F9; --neutral-200: #E2E8F0; --neutral-300: #CBD5E1;
  --neutral-400: #94A3B8; --neutral-500: #64748B; --neutral-700: #334155;
  --success-tint: #DCFCE7; --success-dark: #166534; --info-tint: #CFFAFE; --info-dark: #0E7490;
  --error: #DC2626; --error-dark: #B91C1C;
  --surface-page: var(--neutral-100); --surface-card: #fff; --surface-subtle: var(--neutral-50); --surface-inverse: var(--navy);
  --border-default: var(--neutral-200);
  --text-heading: var(--navy); --text-body: var(--neutral-700); --text-muted: var(--neutral-500); --text-disabled: var(--neutral-400);
  --hover-wash: rgba(37, 99, 235, .06);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, .24);
  --shadow-xs: 0 1px 2px rgba(11, 29, 79, .05);
  --shadow-md: 0 12px 28px rgba(11, 29, 79, .12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, 0, .2, 1);
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--surface-card); color: var(--text-body); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { color: var(--text-heading); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
::selection { background: rgba(37, 99, 235, .2); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.overline { font: 600 11px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-xs); padding: 24px; }
.h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.15 var(--font); letter-spacing: -.025em; margin: 14px 0 12px; }
.lead { font-size: 16px; text-wrap: pretty; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.2); border-bottom: 1px solid var(--border-default); }
.site-header .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 26px; height: 26px; display: block; }
.brand b { font: 700 17px/1 var(--font); letter-spacing: -.03em; color: var(--text-heading); }
.brand span { font: 500 13px/1 var(--font); color: var(--text-muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav a { font: 600 14px/1 var(--font); color: var(--text-body); }
.nav a:hover { color: var(--brand-600); }
.nav a.cta { color: var(--brand-600); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px; font: 600 14px/1 var(--font); cursor: pointer; border: 1px solid transparent; transition: background var(--fast, 120ms) var(--ease), border-color 120ms var(--ease); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-primary:active { background: var(--brand-800); }
.btn-outline { background: #fff; color: var(--text-heading); border-color: var(--neutral-300); }
.btn-outline:hover { background: var(--hover-wash); color: var(--text-heading); }
.btn[disabled] { background: var(--neutral-200); color: var(--neutral-400); cursor: not-allowed; }

/* Hero */
.hero { border-bottom: 1px solid var(--border-default); background: linear-gradient(180deg, var(--neutral-50), var(--surface-card)); }
.hero .wrap { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero > .wrap > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border-default); border-radius: 999px; background: #fff; margin-bottom: 22px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); display: block; }
.hero h1 { font: 700 clamp(34px, 5.2vw, 56px)/1.06 var(--font); letter-spacing: -.035em; margin-bottom: 20px; text-wrap: balance; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 18px); max-width: 54ch; margin-bottom: 20px; }
.hero p.sub { color: var(--text-muted); max-width: 52ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Feed card */
.feed { display: grid; gap: 14px; padding: 20px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip { font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--info-tint); color: var(--info-dark); }
.chip.ok { background: var(--success-tint); color: var(--success-dark); }
.feed-rows { display: grid; gap: 10px; }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-subtle); }
.feed-row .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed-row .n { font: 600 14px/1.2 var(--font); color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .r { display: flex; gap: 14px; flex: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.feed-row .m { color: var(--text-muted); font-weight: 500; }
.feed-row .v { font-weight: 600; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--success-tint); color: var(--success-dark); display: flex; align-items: center; justify-content: center; flex: none; font: 700 11px/1 var(--font); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand-100); border-top-color: var(--brand-600); flex: none; animation: spin 900ms linear infinite; }
.note { font-size: 12px; line-height: 1.5; color: var(--text-disabled); margin-top: 12px; }

/* Sections */
.section { border-bottom: 1px solid var(--border-default); }
.section .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section.grey { background: var(--surface-page); }
.intro { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.service { display: flex; flex-direction: column; gap: 12px; transition: box-shadow 180ms var(--ease); }
.service:hover { box-shadow: var(--shadow-md); }
.service .tag { display: flex; align-items: center; gap: 10px; }
.service .tag i { width: 26px; height: 3px; border-radius: 2px; background: var(--brand-600); display: block; }
.service h3 { font: 650 19px/1.25 var(--font); letter-spacing: -.015em; }
.service p { font-size: 14.5px; text-wrap: pretty; }
.service ul { list-style: none; padding: 0; margin-top: 4px; display: grid; gap: 7px; }
.service li { display: flex; gap: 9px; align-items: flex-start; font: 500 13.5px/1.5 var(--font); color: var(--text-muted); }
.service li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--neutral-300); flex: none; margin-top: 7px; }

.systems { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden; }
.systems li { background: #fff; padding: 18px 16px; display: flex; flex-direction: column; gap: 5px; min-height: 74px; justify-content: center; transition: background 120ms var(--ease); }
.systems li:hover { background: #F5F8FE; }
.systems b { font: 600 14.5px/1.25 var(--font); letter-spacing: -.01em; color: var(--text-heading); }
.systems span { font: 500 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-disabled); }
.systems-note { margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }

.approach { background: var(--surface-inverse); color: var(--neutral-200); }
.approach .overline { color: var(--brand-300); }
.approach .h2 { color: #fff; }
.approach .lead { color: var(--neutral-300); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.step { border-top: 2px solid rgba(255, 255, 255, .18); padding-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.step .overline { color: var(--cyan); letter-spacing: .08em; }
.step h3 { font: 650 17px/1.3 var(--font); letter-spacing: -.012em; color: #fff; }
.step p { font-size: 14px; color: var(--neutral-300); text-wrap: pretty; }

/* Contact */
.contact .wrap { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact .wrap > * { min-width: 0; }
.contact h2 { font: 700 clamp(24px, 3vw, 32px)/1.2 var(--font); letter-spacing: -.025em; margin-bottom: 12px; }
.contact .about { font-size: 15.5px; max-width: 52ch; text-wrap: pretty; }
.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font: 600 13px/1.2 var(--font); color: var(--text-heading); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--neutral-300); border-radius: 8px; background: #fff; color: var(--text-heading); font: 400 15px/1.4 var(--font); transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.field textarea { height: auto; min-height: 112px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus-ring); }
.field.bad input, .field.bad textarea { border-color: var(--error); }
.field.bad input:focus, .field.bad textarea:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.err { font: 500 12.5px/1.4 var(--font); color: var(--error-dark); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send-error { font: 500 13px/1.5 var(--font); color: var(--error-dark); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-foot a { font: 500 13px/1.4 var(--font); color: var(--text-muted); }
.form-foot a:hover { color: var(--brand-600); }
.sent { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
.sent strong { font: 600 17px/1.4 var(--font); letter-spacing: -.015em; color: var(--text-heading); }
[hidden] { display: none !important; }

.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .brand img { width: 22px; height: 22px; }
.site-footer span, .site-footer a { font: 500 13px/1.4 var(--font); color: var(--text-muted); }
.site-footer a:hover { color: var(--brand-600); }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .brand span { display: none; } .nav { gap: 16px; } .nav a { font-size: 13px; } }
@media (max-width: 460px) { .nav a:nth-child(1), .nav a:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
