/* easytocloud – Premium Apple-inspired Design */

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Brand */
  --brand: #0071e3;
  --brand-hover: #0077ed;
  --brand-light: #147ce5;
  
  /* Neutrals - Apple-style grays */
  --white: #ffffff;
  --gray-50: #fbfbfd;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d2d2d7;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-600: #424245;
  --gray-900: #1d1d1f;
  --black: #000000;
  
  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Layout */
  --max-width: 980px;
  --max-width-wide: 1200px;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.16);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-text);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { 
  font-size: clamp(40px, 6vw, 64px); 
  font-weight: 100; /* Ultra-thin like letterhead */
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 300; }
h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
h4 { font-size: 21px; font-weight: 600; }

p { 
  font-size: 17px; 
  line-height: 1.65; 
  color: var(--gray-500);
}

.text-large {
  font-size: 21px;
  line-height: 1.5;
}

.text-small {
  font-size: 14px;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

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

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

.section {
  padding: var(--space-4xl) 0;
}

.section-tight {
  padding: var(--space-3xl) 0;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--duration-normal) var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.site-header .brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #25a5e0;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-out);
}

.brand:hover .brand-name {
  color: #1e73be;
}

.brand-logo {
  height: 28px;
  width: auto;
  transition: transform var(--duration-fast) var(--ease-out);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-header nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-900);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: calc(52px + var(--space-5xl)) 0 var(--space-5xl);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-compact {
  padding-bottom: var(--space-4xl);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 17px;
  font-weight: 400;
  color: var(--brand);
  margin-bottom: var(--space-md);
}

.hero .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  max-width: 800px;
  margin-bottom: var(--space-lg);
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  max-width: 600px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.cta-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-card {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-stat {
  text-align: center;
  padding: var(--space-lg) var(--space-2xl);
}

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--gray-200);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--white);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
}

.btn-ghost:hover {
  color: var(--brand-hover);
  background: rgba(0, 113, 227, 0.04);
}

/* Link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  color: var(--brand);
  text-decoration: none;
  transition: gap var(--duration-fast) var(--ease-out);
}

.text-link:hover {
  gap: 10px;
  text-decoration: none;
}

.text-link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}

.section-lede {
  font-size: 19px;
  color: var(--gray-500);
  line-height: 1.5;
}

.lede {
  color: var(--gray-500);
  line-height: 1.5;
}

/* Services Section */
.section-grid {
  padding: var(--space-4xl) 0;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Horizontal scrollable carousel */
.card-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.card-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.card-carousel .card {
  flex: 0 0 calc(50% - var(--space-md));
  scroll-snap-align: start;
  min-width: 280px;
  max-width: 400px;
}

/* Carousel wrapper with fade edges */
.carousel-container {
  position: relative;
  margin: 0 calc(var(--space-lg) * -1);
}

.carousel-container::before,
.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--white) 100%);
}

/* Scrollbar visible on hover for usability hint */
.card-carousel:hover {
  scrollbar-width: thin;
}

.card-carousel:hover::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.card-carousel:hover::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.card-carousel:hover::-webkit-scrollbar-track {
  background: transparent;
}

.card {
  position: relative;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  transition: all var(--duration-normal) var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.card h3 {
  font-size: 21px;
  margin-bottom: var(--space-sm);
}

.card h3 a {
  color: var(--gray-900);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
  text-decoration: none;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* ========================================
   ABOUT SECTION (Split Layout)
   ======================================== */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  padding: var(--space-4xl) 0;
  background: var(--gray-50);
}

.section-split h2 {
  margin-bottom: var(--space-lg);
}

.section-split > div:first-child p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 15px;
  color: var(--gray-500);
}

.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Info Card */
.info-card {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 21px;
  margin-bottom: var(--space-lg);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 15px;
  color: var(--gray-500);
}

.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  border-radius: 50%;
}

/* ========================================
   BLOG SECTION
   ======================================== */
#blog {
  padding: var(--space-4xl) 0;
}

#blog .card {
  padding: var(--space-xl);
}

#blog .eyebrow {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

#blog h3 {
  font-size: 21px;
  margin-bottom: var(--space-sm);
}

#blog p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.center {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ========================================
   CTA SECTION
   ======================================== */
.section-cta {
  position: relative;
  margin: var(--space-2xl) 0 var(--space-4xl);
  padding: var(--space-3xl) var(--space-2xl);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-600) 100%);
  border-radius: 24px;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.section-cta > * {
  position: relative;
  z-index: 1;
}

.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.section-cta h2 {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.section-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

.section-cta .btn-primary {
  background: var(--white);
  color: var(--gray-900);
}

.section-cta .btn-primary:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.section-cta .btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ========================================
   ARTICLE PAGE
   ======================================== */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.article-body h2 {
  font-size: 28px;
  margin: var(--space-2xl) 0 var(--space-md);
}

.article-body h3 {
  font-size: 21px;
  margin: var(--space-xl) 0 var(--space-md);
}

.article-body p {
  font-size: 17px;
  line-height: 1.8;
  margin: var(--space-md) 0;
}

.article-body ul,
.article-body ol {
  margin: var(--space-md) 0 var(--space-md) var(--space-lg);
  color: var(--gray-500);
}

.article-body li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body pre {
  padding: var(--space-lg);
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: 12px;
  overflow-x: auto;
  margin: var(--space-xl) 0;
  font-size: 14px;
  line-height: 1.6;
}

.article-body code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--gray-100);
  border-radius: 4px;
}

.article-body pre code {
  background: transparent;
  padding: 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: var(--space-xl) 0;
}

.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--gray-50);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
  font-size: 17px;
  font-style: italic;
  color: var(--gray-600);
  margin: 0;
}

/* Tags & Meta */
.tag-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  border-radius: 980px;
}

.meta-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  color: var(--gray-400);
  font-size: 14px;
}

.article-nav {
  padding: var(--space-xl) 0 var(--space-4xl);
  text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: var(--space-3xl) 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-footer .brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.site-footer p {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: var(--space-4xl);
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: var(--space-md);
}

.footer-links > div a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-links > div a:hover {
  color: var(--gray-900);
  text-decoration: none;
}

.footer-links > div p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero-card {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
  }
  
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .section-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-5xl: 80px;
  }
  
  .site-header nav {
    gap: var(--space-md);
  }
  
  .hero {
    padding-top: calc(52px + var(--space-3xl));
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .site-header nav {
    display: none;
  }
  
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-row .btn {
    width: 100%;
  }
  
  .hero-card {
    padding: var(--space-md);
  }
  
  .hero-stat {
    padding: var(--space-md);
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
}
