/* ============================================
   CodeWave Solutions — Brand Styles
   ============================================ */

:root {
  --navy: #1a2b4a;
  --navy-dark: #0f1a2e;
  --navy-light: #2a3f6b;
  --red: #e6392e;
  --red-dark: #c42d24;
  --green: #2ecc71;
  --orange: #f39c12;
  --blue: #3498db;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --gray-800: #1e293b;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 43, 74, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 43, 74, 0.12);
  --shadow-lg: 0 10px 40px rgba(26, 43, 74, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-red {
  color: var(--red);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.2;
}

.nav-logo-text small {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--navy-light);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(230, 57, 46, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px 120px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 4.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

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

.hero-logo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-logo-white {
  background: #ffffff;
  padding: 40px 40px 24px;
  text-align: center;
}

.hero-logo {
  width: 280px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 40px 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ---- Section Headers ---- */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Services ---- */

.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-category {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.service-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.app-icon {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(52, 152, 219, 0.15));
  color: var(--navy);
}

.data-icon {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(243, 156, 18, 0.15));
  color: var(--navy);
}

.category-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.service-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
}

.service-dot.green { background: var(--green); }
.service-dot.orange { background: var(--orange); }
.service-dot.blue { background: var(--blue); }

.service-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.service-list p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---- About ---- */

.about {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--red);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.about-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3px;
  box-shadow: var(--shadow-lg);
}

.about-card-inner {
  background: var(--white);
  border-radius: calc(var(--radius-lg) - 3px);
  padding: 48px 36px;
  text-align: center;
}

.about-logo {
  width: 160px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
}

.about-card blockquote {
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 28px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-stack span {
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-light);
}

/* ---- CTA Banner ---- */

.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---- Contact ---- */

.contact {
  padding: 100px 0;
  background: var(--white);
}

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

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

.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--red);
}

.contact-card p {
  color: var(--navy);
  font-weight: 600;
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 46, 0.1);
}

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

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 16px;
}

.form-note a {
  color: var(--red);
  font-weight: 600;
}

.form-note a:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 24px;
  align-items: center;
}

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

.footer-brand img {
  border-radius: 8px;
}

.footer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer-solutions {
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  font-size: 0.8rem;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ---- Form Success State ---- */

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 16px;
}

.form-success h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-600);
}

/* ---- Responsive ---- */

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-bottom: 100px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo {
    width: 220px;
  }

  .services-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links,
  .footer-contact {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .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);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .services,
  .about,
  .contact {
    padding: 60px 0;
  }
}
