/* MeThinkInc — methinkinc.com
   Dark geometric calling-card styles v0.1.1 */

:root {
  --bg-deep: #0b0e14;
  --bg-base: #12161f;
  --bg-raised: #1a2030;
  --bg-card: #1e2638;
  --bg-hover: #263049;
  --border: #2a3548;
  --border-strong: #3d4d6a;
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --text-dim: #6b7a94;
  --accent-cyan: #22d3ee;
  --accent-magenta: #e879f9;
  --accent-amber: #fbbf24;
  --accent-violet: #a78bfa;
  --accent-lime: #a3e635;
  --accent-coral: #fb7185;
  --gradient-hero: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #e879f9 100%);
  --gradient-card: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.06));
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --max-width: 1100px;
  --header-h: 64px;
  --focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(232, 121, 249, 0.06), transparent);
  background-attachment: fixed;
}

/* Subtle Lissajous curve field behind existing gradients */
#lissajous-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #lissajous-bg {
    opacity: 0.16;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.05rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

/* —— Main —— */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

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

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero-motto {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted, #a8b0c0);
  font-style: italic;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 12px 40px rgba(34, 211, 238, 0.2));
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-hero);
  color: #0b0e14;
  border: none;
}

.btn-primary:hover {
  color: #0b0e14;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--accent-cyan);
}

/* —— Sections —— */
.section {
  margin-top: 2.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 55ch;
}

.page-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-intro h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.1rem;
}

/* —— Cards / Grids —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--bg-card);
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Values strip */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--accent-cyan);
}

.value span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— About —— */
.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

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

.prose strong {
  color: var(--text);
}

.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-cyan);
}

.timeline-item .when {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 600;
}

.timeline-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Workshop fleet —— */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fleet-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fleet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fleet-glow, rgba(34, 211, 238, 0.08));
  opacity: 0.9;
  pointer-events: none;
}

.fleet-card > * {
  position: relative;
  z-index: 1;
}

.fleet-card .count {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fleet-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.fleet-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fleet-card .deco {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 72px;
  height: 72px;
  opacity: 0.55;
  z-index: 0;
}

.fleet-card[data-accent="cyan"] { --fleet-glow: linear-gradient(145deg, rgba(34,211,238,0.15), transparent 60%); }
.fleet-card[data-accent="magenta"] { --fleet-glow: linear-gradient(145deg, rgba(232,121,249,0.15), transparent 60%); }
.fleet-card[data-accent="amber"] { --fleet-glow: linear-gradient(145deg, rgba(251,191,36,0.15), transparent 60%); }
.fleet-card[data-accent="violet"] { --fleet-glow: linear-gradient(145deg, rgba(167,139,250,0.15), transparent 60%); }
.fleet-card[data-accent="lime"] { --fleet-glow: linear-gradient(145deg, rgba(163,230,53,0.12), transparent 60%); }
.fleet-card[data-accent="coral"] { --fleet-glow: linear-gradient(145deg, rgba(251,113,133,0.15), transparent 60%); }

/* —— Projects placeholder —— */
.project-card {
  border-style: dashed;
}

.project-card .placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

/* —— Contact —— */
.contact-box {
  max-width: 520px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-image: var(--gradient-card);
}

.contact-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

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

.contact-box .note {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-form .field {
  display: grid;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--accent-cyan);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.contact-form .form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form .form-status.is-error {
  color: var(--accent-coral);
}

.contact-form .form-status.is-ok {
  color: var(--accent-lime);
}

.contact-box {
  position: relative;
  max-width: 560px;
}


/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  padding: 1.75rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

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

/* —— Geometric helpers —— */
.geo-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 2.5rem 0;
  border: none;
}

/* —— Responsive —— */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 260px;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18, 22, 31, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
  }

  .site-header {
    position: relative;
  }

  .site-header.is-nav-open {
    position: sticky;
  }
}

@media (max-width: 480px) {
  .values {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}
