/* ========================================
   Vectaryx — Style System (Light Premium)
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F0EC;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-subtle: #9A9A9A;
  --accent: #2C2C2C;
  --accent-light: #4A4A4A;
  --highlight: #2A7D6E;
  --highlight-dim: rgba(42, 125, 110, 0.15);
  --highlight-glow: rgba(42, 125, 110, 0.08);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  color: var(--text);
  font-weight: 600;
}

em {
  color: var(--highlight);
  font-style: italic;
}

::selection {
  background: var(--highlight);
  color: var(--surface);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); font-weight: 500; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  gap: 0.5rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

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

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

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn--small:hover {
  background: var(--accent);
  color: var(--surface);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__svg {
  width: 100%;
  height: 100%;
}

.hero__shape {
  animation: float 20s ease-in-out infinite;
}

.hero__shape--1 { animation-delay: 0s; }
.hero__shape--2 { animation-delay: -5s; }
.hero__shape--3 { animation-delay: -10s; }
.hero__shape--4 { animation-delay: -15s; }
.hero__shape--5 { animation-delay: -8s; animation-duration: 15s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-15px) rotate(2deg); opacity: 0.7; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   About
   ======================================== */
.about {
  border-top: 1px solid var(--border);
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__text p {
  margin-bottom: var(--space-sm);
  font-size: 1.02rem;
}

.about__quote {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  border-left: 2px solid var(--highlight);
  color: var(--highlight);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.value-card {
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.value-card__icon {
  margin-bottom: var(--space-xs);
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* ========================================
   Products
   ======================================== */
.products {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--highlight);
  background: var(--highlight-glow);
  border: 1px solid rgba(42, 125, 110, 0.2);
  border-radius: 50px;
}

.product-card__icon {
  margin-bottom: var(--space-md);
}

.product-card__name {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.product-card__tagline {
  color: var(--highlight);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.product-card__features {
  margin-bottom: var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.product-card__features li {
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding-left: 1rem;
  position: relative;
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--highlight);
  border-radius: 50%;
}

/* ========================================
   Vision
   ======================================== */
.vision {
  border-top: 1px solid var(--border);
}

.vision__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.vision-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.vision-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.vision-card__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--highlight-dim);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1;
}

.vision-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.vision-card p {
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ========================================
   Newsletter
   ======================================== */
.newsletter {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.newsletter__content {
  max-width: 540px;
  margin: 0 auto;
}

.newsletter__desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: var(--space-lg);
}

.newsletter__form {
  width: 100%;
}

.newsletter__input-group {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
}

.newsletter__input {
  flex: 1;
  padding: 0.8rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--text-subtle);
}

.newsletter__input-group:focus-within {
  border-color: var(--accent);
}

.newsletter__btn {
  flex-shrink: 0;
  padding: 0.8rem 1.6rem;
}

.newsletter__note {
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__tagline {
  margin-top: var(--space-sm);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.footer__links ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.footer__links a,
.footer__contact a {
  font-size: 0.88rem;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--text);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero {
    padding: var(--space-xl) var(--space-sm);
    min-height: 90vh;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.06);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__link--cta {
    text-align: center;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

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

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

  .product-card {
    padding: var(--space-md);
  }

  .product-card__features {
    grid-template-columns: 1fr;
  }

  .newsletter__input-group {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
