/* Trendyworks — dark-tech minimal. Mobile-first (~390px), scales up. */

:root {
  --bg: #0B0F14;
  --bg-raise: #10161D;
  --line: #1E2833;
  --text: #E8EDF2;
  --muted: #93A1B0;
  --accent: #22D3EE;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.08em; color: var(--text);
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav__links { display: none; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 15px; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__toggle { background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; display: block; }
.nav__mobile { display: none; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__mobile.is-open { display: flex; }
.nav__mobile a { color: var(--muted); padding: 10px 0; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, transparent 30%, var(--bg) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__kicker {
  color: var(--accent); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 36px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 32px; border-radius: 6px; transition: filter 0.2s ease;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 40px;
  display: flex; align-items: baseline; gap: 14px;
}
.index { color: var(--accent); font-size: 0.7em; font-weight: 500; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(34, 211, 238, 0.12); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { max-width: 640px; }
.about__lead { font-size: 19px; margin-bottom: 16px; }
.about p:not(.about__lead) { color: var(--muted); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 48px;
}
.stats div { border-left: 2px solid var(--accent); padding-left: 16px; }
.stats dt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.stats dd { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 36px 0;
  color: var(--muted); font-size: 14px;
}
.footer__tag { margin-top: 6px; font-size: 13px; opacity: 0.7; }

/* ---------- Tablet & up ---------- */
@media (min-width: 720px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
  .hero { padding: 128px 0 140px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--contact { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
}

@media (min-width: 1000px) {
  .grid:not(.grid--contact) { grid-template-columns: repeat(3, 1fr); }
}
