/* XSL Code Official Website Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.showcase-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.showcase-list {
  list-style: none;
}

.showcase-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.showcase-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.showcase-image {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.terminal {
  background: var(--secondary);
  padding: 24px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-line {
  margin-bottom: 8px;
}

.terminal-prompt {
  color: var(--accent);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-light);
  margin-top: 8px;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--secondary), #1e293b);
  color: white;
  border-radius: 16px;
  padding: 80px 40px;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 60px 0 24px;
}

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

.footer-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-light);
}

/* Content Pages */
.content-section {
  padding: 60px 0;
}

.content-box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.content-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 32px 0 16px;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.content-box p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.content-box ul,
.content-box ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-box li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-box a {
  color: var(--primary);
  text-decoration: none;
}

.content-box a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
}

.contact-card p {
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-box {
    padding: 24px;
  }
}
