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

:root {
  --ground:    #0c1410;
  --ground-2:  #141f1a;
  --text:      #e6ece7;
  --muted:     #6b8c7a;
  --accent:    #34d399;
  --border:    rgba(52, 211, 153, 0.14);
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ---- NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 20, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

/* ---- HERO ---- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  background: var(--accent);
  margin-left: 0.08em;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: blink 1.15s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

.hero-body {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 2.75rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--ground);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- SHARED SECTION STYLES ---- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-light {
  padding: 7rem 2rem;
}

.section-alt {
  background: var(--ground-2);
  padding: 7rem 2rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 3.5rem;
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(52, 211, 153, 0.38); }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ---- AI SECTION ---- */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.ai-points {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ai-point {
  background: var(--ground-2);
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.ai-point:last-child { border-bottom: none; }

.ai-point-marker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.ai-point-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.ai-point-text strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.88rem;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-copy p {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.about-copy p:last-child { margin-bottom: 0; }

.detail-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-right: 1rem;
}

.detail-val {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.detail-val a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.detail-val a:hover { color: var(--accent); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.field-value {
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.6;
}

/* ---- FORM ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(107, 140, 122, 0.4); }

.form-input:focus,
.form-textarea:focus { border-color: rgba(52, 211, 153, 0.45); }

.form-input.invalid,
.form-textarea.invalid { border-color: rgba(239, 68, 68, 0.6); }

.field-error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #f87171;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-sans);
  line-height: 1.6;
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--ground);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}

.btn-submit:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-notice {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.form-notice.success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent);
}

.form-notice.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
}

/* ---- PULL QUOTE ---- */
.quote-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.quote-text {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
}

.quote-text em {
  color: var(--accent);
  font-style: normal;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-inner a:hover { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid,
  .ai-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .section-light,
  .section-alt { padding: 5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}
