/* ============================================
   HELMSTONE TECHNOLOGY - Refined Professional Theme
   ============================================ */

:root {
  --bg-primary: #1c1c1c;
  --bg-light: #f8f7f5;
  
  --text-dark: #1c1c1c;
  --text-light: #f0eeeb;
  --text-muted: #6b6b6b;
  --text-muted-light: #a8a8a8;
  
  --border-light: #e8e6e3;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --container-max: 800px;
  --header-height: 72px;
}

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

html {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

/* Typography */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
}

p {
  color: var(--text-muted-light);
  max-width: 52ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo .secondary {
  color: #666;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-dark);
  opacity: 1;
}

.nav-cta {
  color: var(--text-dark) !important;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 2px;
}

.nav-cta:hover {
  opacity: 0.6;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  min-height: calc(100vh - 100px);
}

.hero-content {
  padding: var(--space-xl) 0;
  animation: fadeIn 0.8s ease;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-muted-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-title .secondary {
  color: #888;
  letter-spacing: 0.15em;
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: #b8b8b8;
}

.hero-description {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
}

/* About Page */
.about-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  min-height: calc(100vh - 100px);
}

.about-content {
  padding: var(--space-xl) 0;
  animation: fadeIn 0.8s ease;
}

.about-content h1 {
  margin-bottom: var(--space-lg);
}

.about-body p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-body .btn {
  margin-top: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  background: none;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid currentColor;
}

.btn-primary {
  color: var(--text-light);
}

.btn-primary:hover {
  opacity: 0.7;
}

.btn-secondary {
  color: var(--text-muted-light);
}

.btn-secondary:hover {
  opacity: 0.7;
}

/* Footer */
footer {
  padding: var(--space-md) 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

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

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-notice {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: var(--space-sm);
  }
  
  .nav-links a {
    font-size: 0.8rem;
  }
  
  .btn {
    font-size: 0.85rem;
  }
}
