/*! CSS Variables */
:root {
  --bg-primary: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --border-subtle: rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px -2px rgba(37,99,235,0.12), 0 1px 4px -1px rgba(0,0,0,0.08);
  --radius-md: 8px;
  --radius-sm: 4px;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/*! Typography */
body {
  font-family: "Segoe UI", Arial, Helvetica, "Noto Sans", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  word-break: break-word;
  overflow-wrap: break-word;
}

h2 {
  font-size: 1.875rem;
}

p {
  margin-bottom: 1rem;
}

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

/*! Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/*! Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--accent-primary);
  background-color: rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  .nav-links {
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    width: 100%;
  }
  .nav-links.open {
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
}

/*! Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.hero-content {
  flex: 1;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-buttons .btn-primary {
  background-color: var(--accent-primary);
  color: white;
  margin-right: 0.75rem;
}

.hero-buttons .btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.hero-buttons .btn-secondary:hover {
  background-color: var(--accent-primary);
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 500px;
  height: auto;
  border-radius: var(--radius-md);
}

/*! Features */
.features {
  padding: 4rem 0;
  background-color: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  }
}

.feature-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px -2px rgba(37,99,235,0.15), 0 2px 6px -1px rgba(0,0,0,0.1);
}

/*! About */
.about {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: var(--radius-md);
}

/*! Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

/*! Footer */
.footer {
  padding: 3rem 0;
  background-color: #1e293b;
  color: #cbd5e1;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: white;
}

.footer-social .social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background-color: #2563eb;
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}

/*! Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}