/* Base styles */
:root {
  --bg: #fafbfc;
  --panel: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  --brand: #3b82f6;
  --brand-2: #1d4ed8;
  --accent: #10b981;
  --danger: #ef4444;
  --border: #e5e7eb;
  --chip: #f3f4f6;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-light: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Mobile optimizations */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 95%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--brand-2);
  text-decoration: none;
  font-size: 1.25rem;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav .cta {
  color: white;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  transition: all 0.2s ease;
}
.main-nav .cta:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.16;
  font-weight: 700;
}
.hero-copy p { 
  color: rgba(255,255,255,0.9); 
  margin: 0 0 24px; 
  font-size: 1.125rem;
  line-height: 1.6;
}
.hero-ctas { 
  display: flex; 
  gap: 12px; 
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.hero-metrics { 
  display: flex; 
  gap: 24px; 
  padding: 0; 
  margin: 20px 0 0; 
  list-style: none; 
  color: rgba(255,255,255,0.9);
  flex-wrap: wrap;
}
.hero-metrics li {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.hero-visual { 
  justify-self: end; 
  filter: drop-shadow(var(--shadow-lg));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}
.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}
.btn:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn.primary:hover {
  background: var(--brand-2);
}

/* Sections */
.section { 
  padding: 80px 0; 
  position: relative;
}
.section.alt { 
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 { 
  margin: 0 0 32px; 
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card h3 { 
  margin: 0 0 12px; 
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-2);
}
.card p { 
  margin: 0 0 16px; 
  color: var(--muted);
  line-height: 1.6;
}
.card ul { 
  margin: 0; 
  padding-left: 20px; 
  color: var(--muted);
  line-height: 1.6;
}

/* Outcomes grid */
.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px;
  margin-top: 32px;
}
.outcome { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.outcome:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.outcome h4 { 
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-2);
}
.outcome p { 
  margin: 0; 
  color: var(--muted);
  line-height: 1.6;
}

/* Steps */
.steps { 
  counter-reset: step; 
  list-style: none; 
  padding: 0; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px;
  margin-top: 32px;
}
.steps li { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}
.steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.steps h3 { 
  margin: 16px 0 12px; 
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-2);
}
.steps p { 
  margin: 0; 
  color: var(--muted);
  line-height: 1.6;
}

/* Chips */
.chips { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.chip { 
  background: var(--chip); 
  color: var(--text); 
  border: 1px solid var(--border); 
  border-radius: 24px; 
  padding: 10px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.chip:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* Industry Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
}
.industry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.industry-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Contact */
.contact { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  align-items: start; 
}
.list { 
  margin: 0; 
  padding-left: 18px; 
  color: var(--muted);
  line-height: 1.6;
}
.form { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 32px; 
  box-shadow: var(--shadow-lg);
}
.field { 
  margin-bottom: 20px; 
}
.field label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 600;
  color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.checkbox { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  cursor: pointer;
  line-height: 1.5;
}
.error { 
  display: block; 
  color: var(--danger); 
  font-size: 12px; 
  min-height: 16px; 
}
.form-note { 
  color: var(--muted); 
  font-size: 12px; 
  margin: 8px 0 0; 
}
#form-status { 
  margin-top: 8px; 
  font-size: 14px; 
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 40px 0; 
  background: white;
  margin-top: 60px;
}
.footer-inner { 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
  gap: 12px; 
}
.footer-brand { 
  font-weight: 700;
  color: var(--brand-2);
  font-size: 1.125rem;
}
.footer-links a { 
  color: var(--muted); 
  margin: 0 10px; 
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { 
  color: var(--text); 
}
.footer-copy { 
  justify-self: end; 
  color: var(--muted); 
  font-size: 14px; 
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .section {
    padding: 60px 0;
  }
  .hero-metrics {
    gap: 16px;
  }
  .hero-metrics li {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .main-nav a {
    margin: 0;
    font-size: 14px;
  }
  .hero-inner { 
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-visual { 
    justify-self: center;
    max-width: 400px;
  }
  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-metrics {
    justify-content: center;
    gap: 12px;
  }
  .cards { 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .grid-3 { 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .steps { 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }
  .contact { 
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form {
    padding: 24px;
  }
  .footer-inner { 
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .footer-copy { 
    justify-self: center;
  }
}

/* Extra small devices and OnePlus Nord CE4 optimization */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .hero {
    padding: 30px 0 20px;
    min-height: 100vh;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  
  .hero-copy p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .btn {
    width: 100%;
    max-width: 260px;
    height: 44px;
    font-size: 14px;
  }
  
  .hero-metrics {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }
  
  .hero-metrics li {
    font-size: 12px;
    padding: 6px 12px;
    width: 100%;
    text-align: center;
  }
  
  .hero-visual {
    max-width: 300px;
    margin-top: 20px;
  }
  
  .hero-visual svg {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
  
  .form {
    padding: 16px;
  }
  
  .card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .card p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .card ul {
    font-size: 13px;
    padding-left: 16px;
  }
  
  .outcome {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .outcome h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .outcome p {
    font-size: 13px;
  }
  
  .steps li {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .steps h3 {
    font-size: 16px;
    margin: 12px 0 8px;
  }
  
  .steps p {
    font-size: 13px;
  }
  
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .industry-item {
    padding: 12px;
  }
  
  .industry-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  
  .chip {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  /* Navigation improvements for mobile */
  .nav {
    height: auto;
    padding: 12px 0;
  }
  
  .brand {
    font-size: 1.1rem;
  }
  
  .main-nav {
    margin-top: 12px;
  }
  
  .main-nav a {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .main-nav .cta {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Section headers */
  .section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  /* Contact form mobile optimization */
  .field input, .field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  /* Footer mobile */
  .footer-inner {
    gap: 16px;
  }
  
  .footer-links a {
    font-size: 13px;
    margin: 0 6px;
  }
}

/* OnePlus Nord CE4 specific optimizations */
@media (max-width: 428px) and (max-height: 926px) {
  .hero {
    padding: 20px 0 15px;
  }
  
  .hero-copy h1 {
    font-size: 22px;
  }
  
  .hero-visual {
    max-width: 280px;
  }
  
  .container {
    padding: 0 10px;
  }
}