/* ===== Variables ===== */
:root {
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-elevated: #f0f2f7;
  --text-primary: #15181d;
  --text-secondary: #4f5660;
  --text-muted: #7c8390;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.1);
  --accent-2: #7c3aed;
  --accent-3: #059669;
  --accent-4: #dc2626;
  --accent-5: #ea580c;
  --border: #e4e6ec;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --transition: 0.22s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 3.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-subtle), transparent 60%);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

.hero-shape--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.hero-shape--2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

/* ===== Sections ===== */
.about,
.products,
.contact {
  padding: 2.25rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  text-align: center;
}

/* ===== About ===== */
.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-block {
  max-width: 56ch;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
  margin: 0;
}

.about-highlight {
  font-weight: 700;
  color: var(--accent);
}

/* ===== Products ===== */
.products .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.product-coming-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card--1::before { background: var(--accent); }
.product-card--2::before { background: var(--accent-2); }
.product-card--3::before { background: var(--accent-3); }
.product-card--4::before { background: var(--accent-4); }
.product-card--5::before { background: var(--accent-5); }

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card--link:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  margin-bottom: 1rem;
}

.product-card--1 .product-icon-wrap { background: rgba(37, 99, 235, 0.12); }
.product-card--2 .product-icon-wrap { background: rgba(124, 58, 237, 0.12); }
.product-card--3 .product-icon-wrap { background: rgba(5, 150, 105, 0.12); }
.product-card--4 .product-icon-wrap { background: rgba(220, 38, 38, 0.12); }
.product-card--5 .product-icon-wrap { background: rgba(234, 88, 12, 0.12); }

.product-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Contact ===== */
.contact {
  position: relative;
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  border-top: none;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(37, 99, 235, 0.15), transparent);
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

.section-title--light {
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact-intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 44ch;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  margin-bottom: 0.75rem;
}

.contact-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.contact-cta-email {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.contact-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
