/* ===== Quool — base ===== */
:root {
  --bg: #0b1120;
  --bg-alt: #0f1729;
  --surface: #131c30;
  --surface-2: #18233c;
  --border: #243049;
  --text: #e8edf7;
  --muted: #9aa7c2;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-grad: linear-gradient(120deg, #5eead4 0%, #818cf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #06121b;
  box-shadow: 0 10px 30px -10px rgba(94, 234, 212, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(129, 140, 248, 0.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-grad);
  box-shadow: 0 4px 14px -2px rgba(94, 234, 212, 0.6);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  border-radius: 3px; background: var(--bg);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color 0.18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 62%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 20px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 33ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.hero-stats span { font-size: 0.86rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Marquee */
.marquee { margin-top: 72px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; overflow: hidden; background: var(--bg-alt); }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: scroll 26s linear infinite; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }
.marquee-track span:not(:nth-child(even)) { color: var(--accent); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .approach-copy h2, .about-copy h2, .contact-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  position: relative;
}
.card-icon::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px;
  background: var(--accent-grad);
  -webkit-mask: center / contain no-repeat var(--icon);
  mask: center / contain no-repeat var(--icon);
}
.card-icon[data-icon="architecture"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 21V3h2v16h16v2H3zm4-4V9h3v8H7zm5 0V5h3v12h-3zm5 0v-6h3v6h-3z'/%3E%3C/svg%3E"); }
.card-icon[data-icon="build"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 7l-5 5 5 5 1.4-1.4L6.8 12l3.6-3.6L9 7zm6 0l-1.4 1.4L17.2 12l-3.6 3.6L15 17l5-5-5-5z'/%3E%3C/svg%3E"); }
.card-icon[data-icon="ai"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a2 2 0 012 2v1h3a3 3 0 013 3v3h1a2 2 0 010 4h-1v3a3 3 0 01-3 3h-3v1a2 2 0 01-4 0v-1H7a3 3 0 01-3-3v-3H3a2 2 0 010-4h1V8a3 3 0 013-3h3V4a2 2 0 012-2zm-2 7v6h4V9h-4z'/%3E%3C/svg%3E"); }
.card-icon[data-icon="cloud"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 19a5 5 0 01-.5-9.97A6 6 0 0118 9a4 4 0 01-.5 9.97L17 19H6z'/%3E%3C/svg%3E"); }
.card-icon[data-icon="audit"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 2a8 8 0 105.3 14l4.4 4.4 1.4-1.4-4.4-4.4A8 8 0 0010 2zm0 3a5 5 0 110 10 5 5 0 010-10z'/%3E%3C/svg%3E"); }
.card-icon[data-icon="team"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 11a3 3 0 100-6 3 3 0 000 6zm-8 0a3 3 0 100-6 3 3 0 000 6zm0 2c-2.7 0-8 1.3-8 4v3h10v-3c0-1 .4-1.9 1-2.6C10.6 13.2 9 13 8 13zm8 0c-.3 0-.7 0-1.1.1 1.3 1 2.1 2.3 2.1 3.9v3h7v-3c0-2.7-5.3-4-8-4z'/%3E%3C/svg%3E"); }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 22px; padding: 22px; border-radius: var(--radius); border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease; }
.steps li:hover { background: var(--surface); border-color: var(--border); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); padding-top: 2px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s ease, border-color 0.2s ease; }
.work-card:hover { transform: translateY(-5px); border-color: var(--accent-2); }
.work-tag { align-self: flex-start; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.work-card h3 { font-size: 1.2rem; }
.work-card p { color: var(--muted); margin: 0; flex: 1; }
.work-metrics { list-style: none; display: flex; gap: 18px; margin: 6px 0 0; padding: 0; }
.work-metrics li { font-weight: 700; font-family: var(--font-display); color: var(--text); font-size: 0.95rem; }
.work-metrics li::before { content: "▲"; color: var(--accent); font-size: 0.7rem; margin-right: 6px; }

.quote { margin: 0; max-width: 760px; margin-inline: auto; text-align: center; }
.quote p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--text); }
.quote footer { color: var(--muted); margin-top: 16px; }
.quote footer strong { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-visual img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-copy p { color: var(--muted); }
.values { display: grid; gap: 16px; margin-top: 26px; }
.values div { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--accent); }
.values strong { color: var(--text); }
.values span { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-points li { color: var(--muted); padding-left: 28px; position: relative; }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.97rem; resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15); }
.form-note { font-size: 0.9rem; margin: 14px 0 0; min-height: 1.2em; color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-tag { color: var(--muted); margin: 12px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.footer-contact a { color: var(--accent); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .approach-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; }
  .about-visual { order: -1; }
  .cards, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px;
  }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .work-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
