/* ========================================================================
   AUTRONOX / ISIDOR AUTOMATION — Uber/Ola Minimalist Design System
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg: #ffffff;
  --bg2: #f6f6f6;
  --bg3: #eeeeee;

  --text: #000000;
  --text2: #545454;
  --text3: #757575;

  --accent: #000000; /* Primary brand acts as black for simplicity */
  --accent-teal: #19e6c1; /* Subtle teal for tiny details if needed */
  
  --card: #ffffff;
  --card-border: #e0e0e0;
  
  --nav-bg: #ffffff;
  --nav-border: #eeeeee;

  --danger: #e11900;
  --warning: #ffb100;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);

  --nav-height: 72px;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text2);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text2);
  line-height: 1.6;
  max-width: 700px;
}

/* Overriding old dark mode classes */
.gradient-text {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
}

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

.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}

.section-header.center {
  text-align: center;
  align-items: center;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 32px;
  border-radius: 4px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.nav-brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--text2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
}

.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #333;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #222;
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
}

.btn-secondary:hover {
  background: #e5e5e5;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ===== CARDS (Minimalist) ===== */
.glass-card, .coming-soon-card, .step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover, .coming-soon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ===== FEATURE GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg2);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text2);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: 300px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 8px solid var(--text);
}

.hero-phone img {
  width: 100%;
}

/* ===== PAGE HERO ===== */
.hero-page {
  padding: 140px 0 60px;
  background: var(--bg2);
  text-align: center;
}

.hero-page .section-title {
  margin-bottom: 20px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--text);
  color: #fff;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: #a0a0a0;
  font-weight: 500;
}

/* ===== PROBLEM SECTION ===== */
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--card-border);
}

.problem-card:last-child {
  border-bottom: none;
}

.problem-icon {
  font-size: 1.8rem;
}

.problem-text {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

/* ===== PRODUCT SHOWCASE ===== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-image-wrap img {
  max-width: 460px;
  margin: 0 auto;
}

/* ===== PHONE SHOWCASE ===== */
.phones-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.phone-mock {
  width: 280px;
  background: var(--text);
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.phone-notch {
  display: none; /* Removed for cleaner look */
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
}

.phone-label {
  margin-top: 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== SPECS TABLE ===== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--card-border);
}

.specs-table td {
  padding: 24px 16px;
  font-size: 1.05rem;
}

.specs-table td:first-child {
  color: var(--text2);
  width: 40%;
}

.specs-table td:last-child {
  font-weight: 600;
  color: var(--text);
}

/* ===== COMING SOON ===== */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  margin-top: 20px;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  background: var(--bg2);
  padding: 120px 0;
}

.cta-phone-number {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 600;
  margin-top: 24px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-logo {
  height: 32px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.footer-brand p {
  color: #a0a0a0;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  color: #a0a0a0;
  padding: 8px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.9rem;
}

/* ===== CONTACT FORM / INFO ===== */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg2);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.contact-info-icon {
  font-size: 1.8rem;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text2);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border 0.2s ease;
}

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

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--card-border);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.timeline-dot { display: none; } /* Kept clean */

/* ===== UTILITIES ===== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-content, .product-hero, .about-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 32px;
    border-bottom: 1px solid var(--nav-border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { font-size: 1.2rem; }

  .features-grid, .steps-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 60px; }
}
