/* ============================================================
   Builder — styles.css
   Colors: Red #CA171E | Blue #3860BE | Dark #474747
   Font: Montserrat
   ============================================================ */

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

:root {
  --red:    #CA171E;
  --blue:   #3860BE;
  --dark:   #474747;
  --gray:   #696969;
  --light:  #F5F5F5;
  --white:  #FFFFFF;
  --font:   'Montserrat', sans-serif;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

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

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #a8121a; border-color: #a8121a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border-color: #d0d0d0;
}
.btn-ghost:hover { border-color: var(--dark); transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  border-radius: 8px;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}
.logo-by {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  margin-left: 2px;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav a:not(.btn):hover { color: var(--dark); }

/* ── Hero ── */
.hero {
  padding: 90px 0 80px;
  background: linear-gradient(160deg, #fff 55%, #f0f4ff 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Terminal ── */
.terminal {
  background: #1a1d23;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.terminal-bar {
  background: #2a2d35;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  color: #888;
  font-size: 12px;
  font-weight: 500;
}
.terminal-body {
  padding: 24px 24px 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px;
  line-height: 2;
}
.term-prompt { color: var(--red); font-weight: bold; margin-right: 8px; }
.terminal-body p { color: #aab0bc; }
.term-out   { color: #7ec8a0; }
.term-success { color: #63c5ff; font-weight: 600; }
.term-cursor {
  display: inline-block;
  color: #63c5ff;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Features ── */
.features {
  padding: 90px 0;
  background: var(--light);
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid #e4e4e4;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}
.feature-card code {
  background: #eef2ff;
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--red) 0%, #8b0f13 100%);
  padding: 80px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner .logo-mark {
  background: var(--red);
  width: 28px;
  height: 28px;
  font-size: 15px;
  border-radius: 6px;
}
.footer-inner .logo-text {
  color: var(--white);
  font-size: 15px;
}
.footer-copy {
  font-size: 12px;
  color: #888;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .nav a:not(.btn) { display: none; }
}
