/* =========================================================
   UK AI — main stylesheet
   ========================================================= */

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0d0d1a;
  --surface:   #12122a;
  --surface2:  #1a1a38;
  --border:    #2a2a50;
  --accent:    #6c63ff;
  --accent2:   #ff6584;
  --text:      #e0e0f0;
  --text-muted:#9090b0;
  --green:     #22c55e;
  --red:       #ef4444;
  --radius:    4px;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* =========================================================
   Hero section
   ========================================================= */

.hero {
  position: relative;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 40px rgba(108, 99, 255, 0.6);
  letter-spacing: 0.04em;
}

.hero-tagline {
  margin-top: 0.75rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  pointer-events: all;
  flex-wrap: wrap;
}

/* =========================================================
   Shared section layout
   ========================================================= */

.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.section--alt {
  background: var(--surface);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   How It Works section
   ========================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   Services section
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.service-card:hover {
  border-color: var(--accent);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =========================================================
   Verticals section
   ========================================================= */

.verticals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vertical-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.vertical-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* =========================================================
   About section — 3-person grid
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.profile-card--featured {
  border-color: var(--accent);
}

.profile-card:hover {
  border-color: var(--accent);
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  margin-bottom: 1rem;
}

.profile-img--bg {
  background-size: 60%;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--surface2);
}

.profile-img--bel {
  background-size: 82%;
  background-position: center top;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  display: block;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.about-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tech-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* =========================================================
   Contact section
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-detail-item strong {
  color: var(--text);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
}

.contact-submit[aria-busy="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* SSE result message */
.contact-result {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.contact-result--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--green);
  color: var(--green);
}

.contact-result--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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