:root {
  --primary: #513587;
  --secondary: #a084e8;
  --accent: #fff;
  --text: #2d1a4a;
  --bg: #f7f6fb;
  --card-bg: #fff;
  --card-shadow: 0 2px 8px rgba(108, 63, 197, 0.08);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--accent);
  padding: 1rem 2rem;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1rem;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

.auth-buttons button {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-buttons .login {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.auth-buttons .register {
  background: var(--accent);
  color: var(--primary);
}

.auth-buttons button:hover {
  opacity: 0.8;
}

.hero {
  position: relative;
  background: url('touching_braille.png') center/cover no-repeat;
  color: var(--accent);
  text-align: center;
  padding: 7rem 1rem 6rem 1rem;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(81, 53, 135, 0.7) 0%,
      #513587 100%);
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero h1 span {
  display: block;
  color: #cfcfff;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero .desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero .cta {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 0.8rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}

.hero .cta:hover {
  background: #fff;
  color: var(--primary);
}

.hero-extension {
  width: 100%;
  height: 100px;
  background: #513587;
  margin: 0;
  padding: 0;
}

/* Visual Showcase Section */
.visual-showcase {
  background: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.background-curve-light {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('light_purple.png') no-repeat right top/cover;
  z-index: 0;
}

.background-curve {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('dark_purple.png') no-repeat right bottom/cover;
  z-index: 1;
}

.visual-right {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-container {
  width: 100vw;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

/* Left Content Section */
.content-left {
  padding: 4rem 0 4rem 4rem;
  z-index: 2;
}

.heading-section {
  text-align: left;
}

.vertical-line {
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.main-heading {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.1;
  margin: 0;
  padding-left: 30px;
  text-align: left;
}

.main-heading span {
  display: block;
}

.horizontal-line {
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin-top: 1.5rem;
  margin-left: 30px;
  border-radius: 2px;
}

.text-content {
  padding-left: 30px;
}

.text-content .subtitle {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.text-content .description {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 550px;
}

.cta-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(81, 53, 135, 0.3);
}

.cta-button:hover {
  background: #4a2d7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 53, 135, 0.4);
}

.braille-paper-container {
  position: absolute;
  top: 8%;
  left: 7%;
  z-index: 2;
  transform: rotate(-7deg);
}

.braille-paper {
  width: 370px;
  max-width: 38vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.13));
}

.paper-shadow {
  position: absolute;
  bottom: -18px;
  left: 30px;
  width: 260px;
  height: 32px;
  background: rgba(0, 0, 0, 0.13);
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
}

.mockup-container {
  position: absolute;
  bottom: 10%;
  right: 20%;
  z-index: 3;
  transform: rotate(1deg);
}

.mockup {
  width: 270px;
  max-width: 28vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
}

.mockup-shadow {
  position: absolute;
  bottom: -22px;
  left: 28px;
  width: 170px;
  height: 30px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.braille-text-container {
  position: absolute;
  right: 1%;
  bottom: 2%;
  z-index: 1;
}

.braille-text {
  width: 250px;
  max-width: 32vw;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* Responsive design for visual showcase */
@media (max-width: 768px) {
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-left {
    padding: 2rem 0 2rem 2rem;
    text-align: left;
  }

  .main-heading {
    font-size: 3rem;
    padding-left: 25px;
  }

  .vertical-line {
    display: block;
    left: -25px;
    width: 3px;
  }

  .horizontal-line {
    margin-left: 25px;
    margin-top: 1rem;
    width: 60px;
    height: 3px;
  }

  .text-content {
    padding-left: 25px;
  }

  .text-content .subtitle {
    font-size: 1.2rem;
  }

  .text-content .description {
    font-size: 1rem;
  }

  .visual-right {
    height: 60vh;
  }

  .background-curve {
    transform: translateX(20%);
  }

  .braille-paper {
    width: 200px;
  }

  .mockup {
    width: 160px;
  }

  .braille-text {
    width: 120px;
  }

  .paper-shadow {
    width: 170px;
  }

  .mockup-shadow {
    width: 150px;
  }
}

section {
  padding: 3rem 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.problems {
  background: #fff;
  padding: 4rem 0 4rem 0;
}

.problems h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #f7f9fb;
  box-shadow: 2px 6px 12px 0 rgba(81, 53, 135, 0.07);
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: left;
  border-left: 4px solid var(--primary);
  border-bottom: 2px solid var(--secondary);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px 0 rgba(81, 53, 135, 0.13);
  transform: translateY(-4px) scale(1.02);
}

.card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.card p {
  color: #555;
  font-size: 1.05rem;
  margin: 0;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problems {
    padding: 2rem 0;
  }

  .card {
    padding: 1.5rem 1rem 1.2rem 1rem;
  }
}

.community {
  background: #fff;
  padding: 4rem 0 4rem 0;
}

.community h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2.2rem;
  font-weight: bold;
}

.community .desc {
  text-align: center;
  color: #222;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  line-height: 1.5;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  background: linear-gradient(90deg, #513587 0%, #a084e8 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  text-align: center;
  min-width: 260px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 18px 0 rgba(81, 53, 135, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat .number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.stat .label {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .stat {
    min-width: 180px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .auth-buttons {
    margin-top: 0.5rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}

.solutions {
  background: rgba(202, 204, 255, 0.98);
  padding: 4rem 0 4rem 0;
}

.hero,
.visual-showcase,
.problems,
.solutions,
.community {
  min-height: 100vh;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: var(--accent);
  color: var(--primary);
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(81, 53, 135, 0.15);
  transition: left 0.2s, box-shadow 0.2s;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  box-shadow: 0 4px 16px rgba(81, 53, 135, 0.25);
}

.footer {
  background: var(--primary);
  color: var(--accent);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1rem;
  margin-top: 0;
}

/* Remove margin from main or previous section if present */
main {
  margin-bottom: 0;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

.footer a,
.footer .btn {
  color: #fff !important;
  background: #4a2d7a;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5em;
  transition: background 0.2s, color 0.2s, outline 0.2s;
  outline: none;
}

.footer a:hover,
.footer .btn:hover,
.footer a:focus,
.footer .btn:focus {
  background: #fff;
  color: #4a2d7a !important;
  outline: 2px solid #4a2d7a;
  text-decoration: underline;
}

/* Remove unwanted spacing above footer */
body>*:last-child {
  margin-bottom: 0 !important;
}