/* CoreValley AI — palette sampled from the logo
   Cloud mint  #79F2AE / #7EF5B5
   Valley mark #28DB75 / #29D967
   Right cloud #1BBF62 / #27D176
   "core" gray #606060
*/
:root {
  --primary: #1BBF62;
  --primary-dark: #0B8A42;
  --primary-light: #79F2AE;
  --primary-soft: #E8FBF1;
  --accent: #606060;
  --accent-hover: #3D3D3D;
  --bg: #ffffff;
  --bg-alt: #F5FBF8;
  --bg-card: #ffffff;
  --text: #3A3A3A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #D7EEE1;
  --border-strong: #B5DCC6;
  --shadow: 0 4px 24px rgba(27, 191, 98, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 191, 98, 0.12);
  --radius: 14px;
  --nav-height: 76px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(58, 58, 58, 0.06);
}

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

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

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

.logo span {
  color: var(--primary);
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 138, 66, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 138, 66, 0.38);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(121, 242, 174, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.hero-features span::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* ========== SECTIONS ========== */
section {
  padding: 100px 0;
}

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

.section-header .badge {
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.feature-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* GPU Cards */
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.gpu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.gpu-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.gpu-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag.new {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.tag.popular {
  background: #EEF2F6;
  color: var(--accent);
}
.tag.value {
  background: #FFF4D6;
  color: #B45309;
}

.gpu-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.gpu-card .arch {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.gpu-specs {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.gpu-specs div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.gpu-specs div:last-child {
  border-bottom: none;
}

.gpu-specs span:first-child {
  color: var(--text-muted);
}

.gpu-specs span:last-child {
  font-weight: 600;
  color: var(--primary-dark);
}

.gpu-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Problem / Solution */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.problem-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item,
.solution-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.problem-item .icon {
  color: #ef4444;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.solution-item .icon {
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.problem-item h4,
.solution-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}

.problem-item p,
.solution-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 36px 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(11, 138, 66, 0.3);
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Comparison Table */
.comparison {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.comparison th,
.comparison td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison th {
  background: var(--primary-soft);
  font-weight: 600;
  color: var(--primary-dark);
}

.comparison tr:last-child td {
  border-bottom: none;
}

.comparison .check {
  color: var(--primary-dark);
  font-weight: 700;
}

.comparison .cross {
  color: #ef4444;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #D4F5E4 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 191, 98, 0.18);
  background: #fff;
}

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

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

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.form-status.success {
  color: var(--primary-dark);
}

.form-status.error {
  color: #b91c1c;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--accent-hover);
  color: #e8e8e8;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo span {
  color: var(--primary-light);
}

.footer-brand p {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #f5f5f5;
}

.footer ul li {
  margin-bottom: 11px;
}

.footer ul a {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.footer ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #4a4a4a;
  font-size: 0.875rem;
  color: #9a9a9a;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: calc(var(--nav-height) + 70px) 0 60px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== ABOUT ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 28px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

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

  .menu-toggle {
    display: flex;
  }

  .two-col,
  .contact-grid,
  .about-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  section {
    padding: 70px 0;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.bg-alt { background: var(--bg-alt); }
