/*
  ================================================================
  ALPVEC WEBSITE - GLOBAL DESIGN TOKENS
  ================================================================

  The website intentionally uses a dark-first visual identity.

  Design goals:
  - Modern but not flashy
  - Technical but not "cyberpunk"
  - High contrast and readable
  - Minimal dependencies
  - No external fonts
  - Easy to maintain

  If the visual identity changes in the future, most colors can be adjusted
  centrally in this :root block.
*/

:root {
  --background: #0b0f0e;
  --surface: #101513;
  --surface-elevated: #151b19;

  --text: #f2f4f3;
  --text-soft: #c7cdca;
  --muted: #9ca5a1;

  --border: #252c29;
  --border-hover: #39433f;

  --accent: #71b7a0;
  --accent-strong: #8ac9b4;
  --accent-dark: #173d32;

  --max-width: 1120px;

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--background);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/*
  ================================================================
  GLOBAL RESET / BASE ELEMENTS
  ================================================================
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  background: var(--background);
  color: var(--text);

  line-height: 1.6;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

/*
  Shared page-width container.

  Increase --max-width in :root if the website later needs wider content
  layouts, for example screenshots or product comparison sections.
*/
.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

/*
  ================================================================
  HEADER / NAVIGATION
  ================================================================
*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  border-bottom: 1px solid rgba(37, 44, 41, 0.8);

  background: rgba(11, 15, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;
}

/*
  The AlpVec brand consists of an independent icon and wordmark.

  This allows the brand mark to also be reused later as:
  - favicon
  - SaaS application icon
  - social/profile icon
  - product navigation element
*/
.brand {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  font-size: 1.2rem;
  font-weight: 750;

  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: block;

  width: 27px;
  height: 27px;

  object-fit: contain;
}

.navigation {
  display: flex;
  gap: 32px;
}

.navigation a {
  color: var(--muted);

  font-size: 0.95rem;
  text-decoration: none;

  transition: color 160ms ease;
}

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

/*
  ================================================================
  HERO
  ================================================================
*/

.hero {
  padding: 128px 0 112px;
}

.hero-content {
  max-width: var(--max-width);
}

.eyebrow {
  margin: 0 0 18px;

  color: var(--accent);

  font-size: 0.76rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 30px;

  font-size: clamp(3.4rem, 8vw, 6.7rem);
  line-height: 0.96;

  letter-spacing: -0.065em;
}

h1 span {
  color: var(--muted);
}

h2 {
  max-width: 760px;
  margin-bottom: 20px;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;

  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;

  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 38px;

  color: var(--text-soft);

  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

/*
  ================================================================
  BUTTONS
  ================================================================
*/

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 22px;

  border-radius: 8px;

  font-size: 0.95rem;
  font-weight: 650;

  text-decoration: none;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  border: 1px solid var(--accent);

  background: var(--accent);
  color: var(--background);
}

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--border);

  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

/*
  ================================================================
  GENERAL SECTIONS
  ================================================================
*/

.section {
  padding: 96px 0;
}

.section-surface {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  color: var(--muted);

  font-size: 1.05rem;
}

/*
  ================================================================
  APPROACH / PRINCIPLES
  ================================================================
*/

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.principle {
  position: relative;

  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.principle-number {
  display: block;

  margin-bottom: 32px;

  color: var(--accent);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.1em;
}

.principle p {
  max-width: 310px;
  margin-bottom: 0;

  color: var(--muted);
}

/*
  ================================================================
  PRODUCTS
  ================================================================

  The layout is already prepared for multiple product cards.

  When additional SaaS products are added, simply add more .product-card
  elements inside .products-grid.
*/

.products-grid {
  display: grid;

  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;

  min-height: 260px;
  padding: 34px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--surface-elevated);

  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

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

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 40px;
}

.status {
  display: inline-block;

  padding: 5px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-index {
  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-content {
  max-width: 640px;
}

.product-card h3 {
  margin-bottom: 10px;

  font-size: 1.45rem;
}

.product-card p {
  margin-bottom: 0;

  color: var(--muted);
}

.product-link {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-top: auto;
  padding-top: 30px;

  color: var(--text);

  font-size: 0.9rem;
  font-weight: 650;

  text-decoration: none;
}

.product-link:not(.product-link-disabled):hover {
  color: var(--accent);
}

.product-link-disabled {
  color: var(--muted);

  cursor: default;
}

/*
  ================================================================
  CONTACT
  ================================================================
*/

.contact-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.contact-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 48px;
}

.contact-content p {
  margin-bottom: 0;

  color: var(--muted);
}

.contact-link {
  display: flex;
  align-items: center;

  gap: 18px;

  padding-bottom: 7px;

  border-bottom: 1px solid var(--text);

  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 650;

  text-decoration: none;

  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.contact-link span {
  transition: transform 160ms ease;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-link:hover span {
  transform: translateX(4px);
}

/*
  ================================================================
  FOOTER
  ================================================================

  TODO AFTER COMPANY FORMATION:
  Legal links such as Imprint and Privacy Policy can be added here.

  If links are introduced, consider adding a .footer-navigation element
  instead of significantly changing the existing footer layout.
*/

.site-footer {
  padding: 30px 0;

  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;

  gap: 24px;

  color: var(--muted);

  font-size: 0.84rem;
}

/*
  ================================================================
  RESPONSIVE DESIGN
  ================================================================

  Keep the responsive rules simple. The website intentionally avoids complex
  layouts that require JavaScript or framework-specific breakpoint systems.
*/

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .navigation {
    gap: 18px;
  }

  /*
    Hide the least important navigation item on very small screens.
    Products and Contact remain directly accessible.
  */
  .navigation a:first-child {
    display: none;
  }

  .hero {
    padding: 88px 0 78px;
  }

  .section {
    padding: 72px 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;

    gap: 38px;
  }

  .principle-number {
    margin-bottom: 20px;
  }

  .product-card {
    min-height: 240px;

    padding: 26px;
  }

  .product-card-top {
    margin-bottom: 32px;
  }

  .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .contact-content {
    align-items: flex-start;
    flex-direction: column;

    gap: 42px;
  }

  .footer-inner {
    flex-direction: column;

    gap: 6px;
  }
}

/*
  Additional optimization for very small devices.
*/
@media (max-width: 420px) {
  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .navigation {
    gap: 14px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .contact-link {
    font-size: 1rem;
  }
}