/* 1:1 AnyDesk.com/en clone – design tokens and layout */

:root {
  --bg-dark: #0c0c0c;
  --bg-card: #161616;
  --bg-alt: #111111;
  --text: #ededed;
  --text-muted: #8c8c8c;
  --accent: #e8552e;
  --accent-hover: #f06b47;
  --accent-soft: rgba(232, 85, 46, 0.12);
  --border: #2a2a2a;
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.nav-main {
  display: flex;
  gap: 32px;
}

.nav-main a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-call {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.link-call:hover {
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 6px 10px;
}

.theme-toggle:hover {
  color: var(--text);
}

.btn-download {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle:hover {
  color: var(--text);
}

.lang-toggle .chevron {
  font-size: 0.65em;
  opacity: 0.8;
  transition: transform 0.2s;
}

.lang-dropdown.open .lang-toggle .chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-menu li:hover {
  background: var(--accent-soft);
}

.lang-menu li[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 96px 0 120px;
  background: var(--bg-dark);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-tagline .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-note .win-logo {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-title strong {
  color: var(--accent);
}

.section-desc {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* See what's new */
.section-whats-new .section-desc {
  margin-bottom: 28px;
}

.section-whats-new .btn {
  display: block;
  width: fit-content;
  margin: 0 auto 48px;
}

.whats-new-visual {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.whats-new-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Trusted by */
.trusted .section-title {
  margin-bottom: 48px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.logo-strip img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
}

.logo-strip img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* License configurator */
.configurator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.configurator-question {
  margin-bottom: 32px;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.use-case-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.use-case-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.use-case-card span {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.configurator-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.configurator-visual img {
  max-width: 100%;
  height: auto;
}

/* Make the Jump */
.jump-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.jump-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}

.jump-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.jump-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
}

/* AnyDesk fits your needs */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.link-arrow {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Recommended by */
.recommended {
  padding: 64px 0;
}

.recommended .section-title {
  margin-bottom: 40px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.badges img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Pricing */
.pricing-section {
  padding: 96px 0 120px;
}

.pricing-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pricing-nav a {
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-nav a:hover {
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: rgba(232, 85, 46, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-align: left;
}

.pricing-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.pricing-card ul {
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price {
  margin-bottom: 16px;
}

.old-price {
  display: block;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.old-price small {
  font-weight: 500;
  opacity: 0.9;
}

.current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.period {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.4;
}

.pricing-card-ultimate {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-card) 50%);
}

.ultimate-cta {
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-label {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-contact .footer-label + .footer-label {
  margin-top: 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.social-links a:hover {
  color: var(--accent);
}

.phone-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  max-width: 320px;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Light mode (1:1 anydesk.com has theme toggle) */
body.light-mode {
  --bg-dark: #f5f5f5;
  --bg-card: #fff;
  --bg-alt: #ebebeb;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e0e0e0;
}

body.light-mode .top-bar {
  background: rgba(245, 245, 245, 0.95);
}

body.light-mode .logo-strip img {
  filter: grayscale(0);
  opacity: 0.85;
}

body.light-mode .lang-menu {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .configurator-wrap {
    grid-template-columns: 1fr;
  }

  .configurator-content {
    text-align: center;
  }

  .configurator-content .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .use-cases {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .jump-cards {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .link-call {
    display: none;
  }

  .section, .hero {
    padding: 64px 0;
  }

  .pricing-section {
    padding: 64px 0 80px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .newsletter-form input {
    max-width: 100%;
  }
}
