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

:root {
  --blue: #176bff;
  --blue-light: #eaf1ff;
  --blue-muted: #bfd4ff;
  --navy: #10213d;
  --gray: #64748b;
  --gray-light: #dce4f0;
  --bg: #f7f9fc;
  --white: #ffffff;
  --card-bg: #e8f0ff;
  --dark-panel: #10213d;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.logo img {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--navy);
}

/* Hero */
.hero {
  padding: 72px 0 80px;
}

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #1258d6;
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* System card */
.system-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--gray);
}

.system-header .status {
  color: var(--navy);
  font-weight: 500;
}

.sparkle {
  color: var(--blue);
  font-size: 1.1rem;
}

.system-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}

.step-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.step-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.system-panel {
  background: var(--dark-panel);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  color: var(--white);
}

.panel-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-muted);
  margin-bottom: 12px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 78%;
  background: var(--blue);
  border-radius: 999px;
}

.panel-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Projects */
.projects {
  padding: 80px 0;
  border-top: 1px solid var(--gray-light);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}

.projects-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.projects-sub {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 280px;
  text-align: right;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--blue-muted);
  box-shadow: 0 8px 32px rgba(23, 107, 255, 0.08);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.project-arrow {
  color: var(--blue);
  font-size: 1.1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
}

/* Contact */
.contact {
  background: var(--blue-light);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.contact-info p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}

.contact-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
}

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

.form-footer {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
}

.form-footer + .btn {
  align-self: flex-start;
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.form-status--success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.form-status--error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--gray-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-sub {
    text-align: left;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 16px;
  }

  .contact-form {
    padding: 24px;
  }
}
