/* ═══════════════════════════════════════════
   Gorec — gorec.io
   ═══════════════════════════════════════════ */

/* --- Tokens --- */
:root {
  --bg: #0a0a0b;
  --bg-raised: #131316;
  --bg-hover: #1a1a1f;
  --text: #e8e8ec;
  --text-secondary: #8b8b97;
  --text-muted: #5c5c66;
  --accent: #7c6aef;
  --accent-glow: rgba(124, 106, 239, 0.15);
  --border: #1e1e24;
  --border-hover: #2c2c35;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1080px;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --bg-raised: #ffffff;
  --bg-hover: #f2f2f0;
  --text: #1a1a1d;
  --text-secondary: #5c5c66;
  --text-muted: #8b8b97;
  --accent: #6354c9;
  --accent-glow: rgba(99, 84, 201, 0.1);
  --border: #e4e4e2;
  --border-hover: #d0d0ce;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; color: inherit; font: inherit; }
img, svg { display: block; }

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  background: transparent;
}

.header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.header__logo-icon { color: var(--accent); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover { background: var(--bg-hover); color: var(--text); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.hero__brand {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Section Label --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 40px;
}

/* --- Products --- */
.products {
  padding: 60px 0 100px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* --- Product Card --- */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.product-card__icon {
  color: var(--text);
}

.product-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--type {
  background: var(--accent);
  color: #fff;
}

.badge--feature {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.product-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-card__price {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.product-card:hover .product-card__cta { gap: 10px; }

/* --- About --- */
.about {
  padding: 60px 0 100px;
}

.about__content {
  max-width: 520px;
}

.about__content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.about__content p:first-child {
  color: var(--text);
  font-weight: 500;
}

/* --- Contact --- */
.contact {
  padding: 60px 0 100px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

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

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

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer__vienna {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 130px 0 70px; }

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

  .product-card { padding: 24px; }

  .header__nav { gap: 16px; }
  .header__nav a { font-size: 0.8rem; }

  .footer__content {
    flex-direction: column;
    text-align: center;
  }

  .contact__links { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__title { margin-bottom: 16px; }
  .hero__sub br { display: none; }
  .product-card__header { flex-direction: column; gap: 12px; }
  .product-card__badges { justify-content: flex-start; }
}
