/* ============================================
   ChipLogin — Marketing Website Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #06b6d4;
  --color-accent-hover: #0891b2;
  --color-green: #10b981;
  --color-green-hover: #059669;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dark: #1e293b;
  --color-text-dark-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-bg-light-alt: #f1f5f9;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-bg-light: #ffffff;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: #e2e8f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section base --- */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-text);
}

.section--light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section--alt {
  background: var(--color-bg-light-alt);
  color: var(--color-text-dark);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section__subtitle {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.section--dark .section__subtitle {
  color: var(--color-text-muted);
}

.section--light .section__subtitle,
.section--alt .section__subtitle {
  color: var(--color-text-dark-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--large {
  padding: 18px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.btn--green {
  background: var(--color-green);
  color: #fff;
}

.btn--green:hover {
  background: var(--color-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__lang:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.nav__cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #162033 100%);
  color: var(--color-text);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Hero visual — CSS-only mockup */
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__mockup {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero__mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.hero__mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__mockup-dot--red { background: #ef4444; }
.hero__mockup-dot--yellow { background: #eab308; }
.hero__mockup-dot--green { background: #22c55e; }

.hero__mockup-body {
  text-align: center;
  padding: 20px 0;
}

.hero__mockup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mockup-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.hero__mockup-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero__mockup-text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.hero__mockup-animation {
  margin-top: 24px;
  height: 4px;
  background: rgba(6, 182, 212, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.hero__mockup-animation-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 2px;
  animation: loginProgress 3s ease-in-out infinite;
}

@keyframes loginProgress {
  0% { width: 0%; }
  50% { width: 100%; }
  60% { width: 100%; }
  100% { width: 0%; }
}

/* Floating card animation */
.hero__card-float {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent), #0e7490);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cardFloat 4s ease-in-out infinite;
}

.hero__card-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

@keyframes cardFloat {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(-10px, -15px) rotate(0deg); }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: var(--color-card-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card__icon svg {
  width: 32px;
  height: 32px;
  color: #ef4444;
}

.problem-card__icon--orange {
  background: #fffbeb;
}

.problem-card__icon--orange svg {
  color: #f59e0b;
}

.problem-card__icon--purple {
  background: #f5f3ff;
}

.problem-card__icon--purple svg {
  color: #8b5cf6;
}

.problem-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.problem-card__text {
  color: var(--color-text-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   SOLUTION — HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: var(--color-border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step__number svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.step__label {
  position: absolute;
  top: -8px;
  right: calc(50% - 60px);
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.benefit-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--color-card-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.benefit-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card__text {
  color: var(--color-text-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   TARGET SEGMENTS
   ============================================ */
.targets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.target-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-card-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.target-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.target-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.target-card__title {
  font-size: 1rem;
  font-weight: 600;
}

.target-card__icon--green {
  background: #ecfdf5;
}

.target-card__icon--green svg {
  color: #10b981;
}

.target-card__icon--purple {
  background: #f5f3ff;
}

.target-card__icon--purple svg {
  color: #8b5cf6;
}

.target-card__icon--orange {
  background: #fffbeb;
}

.target-card__icon--orange svg {
  color: #f59e0b;
}

/* ============================================
   PRICING
   ============================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pricing__info {
  padding-top: 16px;
}

.pricing__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.pricing__description {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.pricing__cta {
  width: 100%;
}

.pricing__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing__detail-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all var(--transition);
}

.pricing__detail-card:hover {
  border-color: var(--color-accent);
}

.pricing__detail-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing__detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.pricing__detail-icon--green {
  background: rgba(16, 185, 129, 0.1);
}

.pricing__detail-icon--green svg {
  color: var(--color-green);
}

.pricing__detail-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing__detail-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pricing__accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-green));
  border-radius: 2px;
  margin-bottom: 48px;
}

/* ============================================
   FAQ
   ============================================ */
.faq__list {
  max-width: 768px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer-inner {
  padding-bottom: 20px;
  color: var(--color-text-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form__label--required::after {
  content: ' *';
  color: #ef4444;
}

.form__input,
.form__textarea {
  padding: 14px 16px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form__input.error,
.form__textarea.error {
  border-color: #ef4444;
}

.form__error {
  font-size: 0.8125rem;
  color: #ef4444;
  display: none;
}

.form__error.visible {
  display: block;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  width: 100%;
  margin-top: 8px;
}

.form__success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form__success.visible {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form__success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-green);
}

.form__success-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form__success-text {
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-text);
}

/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .targets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.75rem;
  }

  /* Nav mobile */
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__cta-desktop {
    display: none;
  }

  /* Hero mobile */
  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1.0625rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero__stat-value {
    font-size: 1.5rem;
  }

  /* Cards mobile */
  .problems__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .targets__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Form mobile */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing__details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .targets__grid {
    grid-template-columns: 1fr;
  }
}
