/* ============================================
   Coeus Ltd - Website Styles
   Palette: Deep Intelligence (dark)
   ============================================ */

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

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #14141F;
  --text-primary: #E8E8ED;
  --text-secondary: #8888A0;
  --accent-blue: #4A7AFF;
  --accent-cyan: #00D4AA;
  --border: #1E1E2E;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-cyan);
}

/* --- Typography --- */
h1 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
}

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

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

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

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero-small {
  min-height: auto;
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* --- CTA Button --- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.cta:hover {
  color: var(--accent-cyan);
  gap: 0.8rem;
}

/* --- Three Column Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-3 .card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card h3 {
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Two Column Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* --- Signal / Highlight Block --- */
.signal {
  padding: 5rem 0;
  text-align: center;
}

.signal p {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-cyan));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-primary);
}

.timeline-item:last-child::before {
  background: var(--accent-cyan);
}

.timeline-item h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.timeline-item p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Closing Statement --- */
.closing {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.closing p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 700px;
}

/* --- Contact --- */
.contact-block {
  text-align: center;
  padding: 3rem 0;
}

.contact-block h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-block address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 2;
  font-size: 1.05rem;
}

.contact-block .email {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 500;
}

/* --- Footer --- */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  section {
    padding: 4rem 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .signal p {
    font-size: 1.15rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2rem;
  }
}
