/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Minimal & Clean Palette */
  --color-black: #111111;
  --color-dark-gray: #333333;
  --color-mid-gray: #666666;
  --color-light-gray: #999999;
  --color-border: #EAEAEA;
  --color-bg-light: #F9F9F9;
  --color-white: #FFFFFF;

  /* Accent - Refined Red */
  --color-accent: #CD1C18;

  /* Semantic Colors */
  --text-primary: var(--color-black);
  --text-secondary: var(--color-mid-gray);
  --bg-body: var(--color-white);
  --bg-surface: var(--color-white);
  --bg-secondary: var(--color-bg-light);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Z-Index */
  --z-nav: 1000;
  --z-overlay: 900;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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

/* =========================================
   2. REUSABLE CSS CLASSES
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-dark-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-full {
  width: 100%;
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-nav);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

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

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle,
.nav-close {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    padding: 6rem 2rem;
    transition: 0.4s;
    z-index: var(--z-nav);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  }

  .nav.show-menu {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .nav-toggle,
  .nav-close {
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .nav-overlay.show-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-body);
  position: relative;
}

.hero-content {
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(205, 28, 24, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* =========================================
   5. PRODUCT SECTION (Homepage)
   ========================================= */
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-features {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--color-accent);
  font-weight: bold;
}

.product-image-wrapper {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--color-border);
}

.product-img {
  border-radius: var(--border-radius);
  display: block;
}

/* =========================================
   6. FEATURE / PRODUCT GRIDS
   ========================================= */
.feature-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.feature-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================
   6. SERVICES
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: 0.3s;
}

.service-card:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* =========================================
   7. CONTACT
   ========================================= */
.contact-wrapper {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
  outline: none;
}

.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  appearance: none;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Auth Pages */
.login-section {
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-options a {
  color: var(--text-primary);
  font-weight: 500;
}

.form-options a:hover {
  text-decoration: underline;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand p {
  color: #999;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #999;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}

/* =========================================
   9. PRODUCT PAGE SPECIFIC
   ========================================= */
.product-page-header {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: var(--bg-body);
  text-align: center;
}

.product-page-header .section-subtitle {
  color: var(--color-accent);
}

.product-page-header .hero-title {
  color: var(--text-primary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-page-header .section-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 6rem 2rem;
  text-align: center;
  max-width: var(--container-width);
  margin: 4rem auto;
}


/* Responsive */
@media screen and (max-width: 968px) {
  .hero-title {
    font-size: 3rem;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-large {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
  }
}