/* ================================================
   Tech Clarity Co — Landing Page
   styles.css
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Custom Properties --- */
:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 10px 40px rgba(0,0,0,.09);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-align: center;
  border: 2px solid transparent;
  line-height: 1.4;
  text-decoration: none;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue-light);
}

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

/* ================================================
   NAV
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav__logo-icon {
  flex-shrink: 0;
  display: block;
}

/* nav links — hidden on mobile, shown on desktop */
.nav__links {
  display: none;
}

@media (min-width: 640px) {
  .nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: color 0.18s;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__links a.nav--active {
  color: var(--blue);
  font-weight: 600;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: linear-gradient(150deg, #0f172a 0%, #162844 50%, #0f172a 100%);
  color: var(--white);
  padding: 88px 0 80px;
  text-align: center;
}

.hero__inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero__headline {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #4e6585;
  letter-spacing: 0.01em;
}

/* ================================================
   SECTION SHARED
   ================================================ */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--gray-50);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  margin-bottom: 48px;
}

.section__header--center {
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section__title--light {
  color: var(--white);
}

.section__sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
}

.section__header--center .section__sub {
  margin: 0 auto;
}

/* ================================================
   PROBLEM SECTION
   ================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 560px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.pain-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.pain-card h3 {
  font-size: 1.075rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ================================================
   SOLUTION SECTION
   ================================================ */
.solution__inner {
  max-width: 720px;
}

.section--dark .section__title--light {
  margin-bottom: 24px;
}

.section--dark p {
  color: #8fadc4;
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.solution__differentiators {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution__differentiators li {
  color: #8fadc4;
  font-size: 1.025rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.solution__differentiators li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ================================================
   CREDIBILITY / STATS
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-card__number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

/* ================================================
   PRICING
   ================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--featured {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (min-width: 768px) {
  .pricing-card--featured {
    transform: scale(1.04);
    z-index: 1;
  }
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  align-self: flex-start;
}

.pricing-card h3 {
  font-size: 1.175rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pricing-card--featured h3 {
  color: var(--white);
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1;
}

.pricing-card--featured .pricing-card__price {
  color: var(--white);
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.65;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-card__features li {
  padding: 9px 0;
  font-size: 0.925rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card--featured .pricing-card__features li {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-card--featured .pricing-card__features li::before {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card .btn {
  width: 100%;
}


.pricing__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 36px;
}

/* ================================================
   INDUSTRY / WHO IT'S FOR
   ================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .industry-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.industry-tile {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.industry-tile__icon {
  font-size: 2.25rem;
  margin-bottom: 14px;
  display: block;
}

.industry-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.industry-tile p {
  font-size: 0.865rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ================================================
   ABOUT VIKTOR
   ================================================ */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
}

.about__photo {
  flex-shrink: 0;
}

.about__photo-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  display: block;
}

@media (min-width: 768px) {
  .about__photo-img {
    width: 220px;
    height: 220px;
  }
}

.about__text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.about__text p {
  font-size: 0.975rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text .btn {
  margin-top: 8px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0a66c2;
  color: #ffffff;
  margin-top: 12px;
  transition: background 0.18s, transform 0.18s;
}

.linkedin-link:hover {
  background: #004182;
  transform: translateY(-2px);
}

.linkedin-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ================================================
   FAQ
   ================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  gap: 16px;
}

/* Hide default browser arrow */
.faq-item__question::-webkit-details-marker,
.faq-item__question::marker {
  display: none;
  content: '';
}

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding-bottom: 24px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #07101e;
  color: #8fadc4;
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.footer__brand {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: #8fadc4;
  font-size: 0.875rem;
  transition: color 0.18s;
}

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

.footer__copy {
  font-size: 0.78rem;
  color: #3a5068;
}

/* ================================================
   HAMBURGER & MOBILE NAV
   ================================================ */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 640px) {
  .nav__hamburger { display: none; }
  .nav__cta-desktop { display: inline-block; }
}

@media (max-width: 639px) {
  .nav__cta-desktop { display: none; }
}

.nav__mobile {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0 20px;
}

.nav__mobile.nav__mobile--open {
  display: block;
}

@media (min-width: 640px) {
  .nav__mobile { display: none !important; }
}

.nav__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.18s;
}

.nav__mobile-link:hover {
  color: var(--blue);
}

.nav__mobile-cta {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

/* ================================================
   THANK-YOU STATE
   ================================================ */
.form-thankyou {
  text-align: center;
  padding: 40px 16px;
}

.form-thankyou__icon {
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-thankyou__icon svg {
  width: 28px;
  height: 28px;
  stroke: #86efac;
}

.form-thankyou h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.form-thankyou p {
  color: #8fadc4;
  font-size: 1rem;
  line-height: 1.7;
}

/* ================================================
   FOOTER LEGAL LINKS
   ================================================ */
.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal a {
  color: #3a5068;
  font-size: 0.8rem;
  transition: color 0.18s;
}

.footer__legal a:hover {
  color: #8fadc4;
}

/* ================================================
   FOCUS STYLES (accessibility)
   ================================================ */
a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-section {
  background: linear-gradient(150deg, #0f172a 0%, #162844 100%);
  color: var(--white);
  padding: 88px 0;
}

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

@media (min-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact__copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact__copy p {
  font-size: 1.05rem;
  color: #8fadc4;
  line-height: 1.75;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.form-group input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder {
  color: #4e6585;
}

.form-group input:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input.input--invalid {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.field-error {
  font-size: 0.8rem;
  color: #f87171;
  min-height: 1.1em;
  line-height: 1.4;
}

.field-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: #4e6585;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-success {
  padding: 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #86efac;
  font-size: 0.925rem;
  line-height: 1.6;
}

.form-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.925rem;
  line-height: 1.6;
}

.form-error a {
  color: #fca5a5;
  text-decoration: underline;
}
