:root {
  --bg-color: #ffffff;
  --text-color: #1d1d1f;
  --text-secondary: #86868b;
  --accent-color: #0071e3;
  --accent-hover: #0077ed;
  --card-bg: #f5f5f7;
  --border-color: #d2d2d7;
  --window-header: #ebebeb;
  --window-sidebar: #f2f2f2;
  --container-width: 1100px;
  --font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --card-bg: #161617;
    --border-color: #424245;
    --window-header: #323232;
    --window-sidebar: #262626;
  }
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 22px;
}

header {
  height: 52px;
  background: rgba(var(--bg-color), 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-color);
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.logo-text {
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  color: var(--accent-color);
}

.btn-secondary:hover {
  text-decoration: underline;
}

.btn-large {
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.version-info {
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-visual {
  flex: 1.2;
}

/* App Window Mockup */
.app-window {
  background: var(--bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
}

.window-header {
  height: 38px;
  background: var(--window-header);
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.dots {
  display: flex;
  gap: 8px;
}

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

.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.window-body {
  flex: 1;
  display: flex;
}

.sidebar {
  width: 180px;
  background: var(--window-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-item {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.sidebar-item.active {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
  }
}

.editor {
  flex: 1;
  padding: 40px;
  font-family: "SF Mono", SFMono-Regular, ui-monospace, monospace;
  font-size: 14px;
}

.editor .h1 {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #0071e3;
  margin-bottom: 20px;
}

.editor span {
  color: #86868b;
}

/* Features */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* Philosophy */
.philosophy {
  padding: 100px 0;
  background: var(--card-bg);
  border-radius: 30px;
  margin-bottom: 80px;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 24px;
}

.philosophy p {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.philosophy ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.philosophy li {
  background: var(--bg-color);
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .subtitle {
    margin: 0 auto 40px;
  }
  .hero-actions {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
  }
  .subtitle {
    font-size: 20px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
