:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-dark: #0f172a;
  --bg-slate: #1e293b;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Layout */
  --max-width: 1100px;
  --section-spacing: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-spacing) 0;
}

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

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--bg-dark);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4.5rem; /* Offset for fixed header */
  background-color: var(--bg-secondary);
}

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

/* About Section */
.about {
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: center;
}

.about-text {
  /* text is the 1.2fr part */
}

.about-visual {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-visual h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-visual p {
  color: var(--text-light-muted);
  margin-bottom: 0;
  font-size: 1rem;
}

/* Services Section */
.services {
  background-color: var(--bg-secondary);
}

.section-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

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

.service-card {
  background-color: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-icon {
  margin-bottom: 1.5rem;
  color: var(--bg-slate);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: auto;
}

.service-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bg-dark);
}

.service-link:hover {
  text-decoration: underline;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* Approach Section */
.approach {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0;
}

.approach h2 {
  color: var(--text-light);
}

.approach p {
  color: var(--text-light-muted);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.step {
  position: relative;
}

.step-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  background-color: var(--text-light);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.step h3 {
  color: var(--text-light);
  font-size: 1.25rem;
}

.step p {
  font-size: 1rem;
}

/* Products Section */
.products {
  background-color: var(--bg-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 3rem;
}

.product-item {
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
}

.product-item h3 {
  font-size: 1.5rem;
}

.product-item p {
  font-size: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-primary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background-color: var(--bg-secondary);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--bg-dark);
  margin-top: 1.5rem;
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bg-dark);
  background-color: var(--bg-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Feedback */
.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-feedback:not(:empty) {
  display: block;
}

.form-feedback.is-success {
  background-color: #dcfce7; /* Green 100 */
  color: #166534; /* Green 800 */
  border: 1px solid #bbf7d0; /* Green 200 */
}

.form-feedback.is-error {
  background-color: #fee2e2; /* Red 100 */
  color: #991b1b; /* Red 800 */
  border: 1px solid #fecaca; /* Red 200 */
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid #e2e8f0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-brand .logo-img {
  height: 28px;
  filter: grayscale(100%) opacity(80%);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --section-spacing: 5rem;
  }
  
  .nav-links {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    margin-top: 1.5rem;
  }
  
  .about-grid,
  .services-grid,
  .approach-steps,
  .products-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-wrapper {
    padding: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
}
