/* -------------------------------------------------------------
 * Verbsoft Apple Theme - Main Stylesheet
 * ------------------------------------------------------------- */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.site-main-wrapper {
  flex: 1 0 auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-green {
  background: linear-gradient(135deg, #30d158 0%, #64d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green { color: var(--apple-green) !important; }
.text-blue { color: var(--accent-primary) !important; }

/* -------------------------------------------------------------
 * Buttons (Apple Style)
 * ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.btn-large {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
}

.btn-hero-lg {
  font-size: 16px;
  padding: 12px 28px;
  min-height: 54px;
  border-radius: var(--radius-md);
}

.btn-apple-primary {
  background: var(--accent-secondary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-apple-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-apple-secondary {
  background: var(--bg-card-hover);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-apple-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-apple-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn-apple-glass {
  background: var(--bg-glass);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-apple-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-pill {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * Apple Navigation Header
 * ------------------------------------------------------------- */
.apple-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.apple-nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: flex;
  align-items: center;
  color: var(--accent-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-menu-list li a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-menu-list li a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-drawer-footer {
  margin-top: 40px;
}

/* -------------------------------------------------------------
 * Apple Footer
 * ------------------------------------------------------------- */
.apple-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  margin-top: 80px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 12px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.separator {
  color: var(--text-dim);
}

/* -------------------------------------------------------------
 * Global Download Modal
 * ------------------------------------------------------------- */
.apple-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.apple-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.apple-modal-dialog {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.apple-modal-backdrop.active .apple-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon-badge {
  margin-bottom: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-dl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-dl-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.modal-dl-item.highlight-target {
  border-color: var(--accent-primary);
  background: rgba(41, 151, 255, 0.08);
}

.dl-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.dl-item-info {
  flex: 1;
}

.dl-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.dl-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.apple-color { color: #f5f5f7; }
[data-theme="light"] .apple-color { color: #1d1d1f; }
.win-color { color: #00a4ef; }
.linux-color { color: #fcc624; }
.chrome-color { color: #4285f4; }

.modal-mac-hint {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.hint-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Code Copy Box */
.code-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--apple-green);
  gap: 8px;
}

.code-copy-box code {
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-drawer { display: block; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

[data-theme="light"] .lang-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
}



/* Apple Language Dropdown Menu (10 Global Languages) */
.apple-lang-dropdown {
  position: relative;
  display: inline-block;
}

.apple-lang-dropdown .lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.apple-lang-dropdown .lang-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.apple-lang-dropdown .lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 8px;
  list-style: none;
  width: 200px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(20px);
}

.apple-lang-dropdown .lang-dropdown-menu.show,
.apple-lang-dropdown:hover .lang-dropdown-menu {
  display: block;
}

.apple-lang-dropdown .lang-dropdown-menu li {
  margin-bottom: 2px;
}

.apple-lang-dropdown .lang-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.apple-lang-dropdown .lang-dropdown-menu li a small {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}

.apple-lang-dropdown .lang-dropdown-menu li a:hover,
.apple-lang-dropdown .lang-dropdown-menu li.active a,
.apple-lang-dropdown .lang-dropdown-menu li a.active {
  background: var(--accent-primary);
  color: #ffffff !important;
}

.apple-lang-dropdown .lang-dropdown-menu li a:hover small,
.apple-lang-dropdown .lang-dropdown-menu li.active a small {
  color: rgba(255, 255, 255, 0.8);
}


/* -------------------------------------------------------------
 * Verbsoft Studio Multi-App Suite Styling
 * ------------------------------------------------------------- */
.apps-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.app-suite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.app-suite-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.app-suite-card.flagship {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.8) 0%, rgba(41, 151, 255, 0.1) 100%);
  border-color: var(--accent-primary);
}

.app-suite-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(41, 151, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.app-suite-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-icon-suite {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.app-icon-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.app-suite-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-suite-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.app-suite-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.app-suite-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.spec-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.app-suite-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.status-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-container {
  padding-top: 24px;
}

.apple-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.apple-breadcrumb a {
  color: var(--text-secondary);
}

.apple-breadcrumb a:hover {
  color: var(--text-primary);
}

.apple-breadcrumb .current {
  color: var(--text-primary);
}

.software-hero {
  padding: 40px 0 60px;
}

.software-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .apps-suite-grid { grid-template-columns: 1fr; }
  .app-suite-card.flagship { grid-column: span 1; }
}
